Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Like every author needs to read a lot of classical literature to develop his own style, and like every chess player read and analyze former champions games before, I think also every programmer needs to read a lot of high quality code.

When it comes to Java source code, what are your recommendations as "reading". Which open source projects, libraries in the past you found yet easier to grasp and easy to read but also very good examples of what "high quality" code looks like?

share|improve this question
1  
Hi iPhoneDeveloper, open-ended lists like this, where people take half a second to provide a one-line suggestion, might be great for a discussion forum, but aren't a good fit for the Stack Exchange style of Q&A. If you have specific high-level questions, feel free to ask those, instead. –  user8 Feb 5 '12 at 20:33
    
@Mark Trapp if I can only ask "practical, answerable questions based on actual problems that you face" then what makes this site different than Stack Overflow? I find this approach very dogmatic and rigid, you close a lot of questions where many people can get benfit, maybe you need to get a hobby :) –  iPhoneDeveloper Feb 5 '12 at 21:37
    
@Mark Trapp, its your luck day, I just found another question you can close, very similar to this, enjoy! programmers.stackexchange.com/questions/62293/… –  iPhoneDeveloper Feb 5 '12 at 21:48
    
@Mark Trapp you'r really lucky today..close this one too; stackoverflow.com/questions/325504/… –  iPhoneDeveloper Feb 5 '12 at 23:22
add comment

closed as not constructive by Mark Trapp Feb 5 '12 at 20:32

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

3 Answers

up vote 4 down vote accepted

The Spring framework core source code is excellent to read. It has been recommended to me several times and I read some of it myself. Jürgen did a good job here.

share|improve this answer
add comment

I can recommend the source code of Guice, Bob Lee et al made a lovely clean code base there

share|improve this answer
add comment

The best source is the language inventor's own books. Search for a good book written by James Gosling. Also you can find a lot of great examples on Java's official website.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.