Making Code Easy to Understand – What Developers Want (a study)
blog.architexa.com
blog.architexa.com
I agree that understanding an Open Source project without proper documentation is really hard. For the same reason we are trying to create this site (http://www.codemaps.org/s/Lucene_Core) to document open source projects. This is still in beta and we would be glad to hear your thoughts on it.
Does anyone find this surprising?
Regarding code examples vs test cases: they're different in the same way Overview docs are different from Reference docs. The code examples are part of the overview, and show the typical / most common ways of using the code. The test cases are like reference docs, and show every nuance and feature of the code, including all variations on argument and response types and error paths.
P.S: for those who like to blame outsourcing to India, this one was from a U.S contractor
Test cases are certainly useful if you need to dive into comprehensive/advanced usage of the API. But if you just want to "get started", a huge vat of unit tests can be daunting.