6

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?

Spring
  • 1,763

3 Answers3

7

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.

4

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

2

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.

Maxood
  • 1,493