Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do Poor Code Samples Turn You Away From Libraries?

Tags:

frameworks

I've been evaluating a framework that on paper looks great. The problem is that the sample code is incomplete and of poor quality. The supplied reference implementations are for the most part not meant to be used (so they can be considered as sample code as well) and have only succeeded at confusing me.

I know that it's common for things to look better on paper, but my experience with the sample code is turning me away from further investigation.

Do you let poor code samples change your judgment of frameworks/libraries? So far my experience has been similar to the "resume effect": if someone doesn't put the effort into spell checking their resume, they probably won't get the job...

like image 724
oreoshake Avatar asked Dec 10 '22 21:12

oreoshake


2 Answers

For me, it does. I tend to want to avoid libraries where the code samples are incomplete. If the library is open source, I will overlook it, since I can directly look at the code and see if the library's internals are reasonable, and I know that, if there is a problem someday, I could (if I had to) fix it.

If the library is commercial, and their samples and/or documentation is poor, I look elsewhere. I just see it as risk management - poor samples make me fear the quality of the library in general.

No matter how good something is on paper or in theory, it can still be crap when programmed.

like image 109
Reed Copsey Avatar answered Mar 18 '23 03:03

Reed Copsey


I think this is a valid reason to turn away from and evaluate other libraries. As a potential user of a library a lack of documentation and/or bad code samples gives the impression that the library is not yet mature enough for use by third parties. In time it may well gain the missing pieces but until then I think its reasonable to look elsewhere.

I was recently evaluating the multitude of blogging applications that people have uploaded to github.com I quickly skipped ones that no documentation as they obviously weren't ready for others to use. The ones that remained at the end had a good README with info on how to get the app up and running as well as an online example of the code running.

like image 43
Wes Avatar answered Mar 18 '23 02:03

Wes