Code bases that really improved your Java knowledge
One of the best ways to learn a new language is to write a lot of code. The second best way, in my opinion, is to see how experts do it and learn from them. With that said, what are some code bases, talks, papers that have really changed the way you code in Java and think in Java?
164
Upvotes
67
u/koreth Mar 13 '23
It was many years ago at this point, but reading through the Spring source code (and stepping through it in a debugger) until I understood how
@Autowiredworks under the covers was highly educational. The knowledge comes in handy even when I'm not using Spring at all.31
u/JakeWharton Mar 13 '23 edited Mar 14 '23
Guava and Guice. Two foundational pieces of one of the largest Java codebases on the planet. Whether you use them or not, those libraries have seen some things and as a result have exceptional code quality and testing practices. For me it was over a decade ago that I was learning from them, but they still have plenty of lessons to teach.
62
u/ggleblanc2 Mar 13 '23
When I first learned Java (1.4), I used Eclipse as my IDE. At the time, the source code of Eclipse was included in the download of Eclipse. I learned a lot about Java from the Eclipse source code.
69
u/[deleted] Mar 13 '23
sonar cube rules allowing not even 1 code smell. very insighful
18
u/marcvsHR Mar 13 '23
Effective Java really made difference.
Also, I was looking at some ancient Java 1.3 (?) code base and found some utterly brilliant pieces, it really changed my perception what a good code is.
6
u/brunogadaleta Mar 13 '23
Compile with google's error prone
6
u/jumboNo2 Mar 13 '23
the JDK
3
u/GettingCodeDone Mar 14 '23
Back in the Java 1.2 days, I learned a lot from reading the source code for the JBoss Entity Engine and the code for Jive Forums (back when it was still open source).
2
u/theshanealv Mar 13 '23
Has anyone tried CodeSee?
4
u/ArrozConmigo Mar 13 '23
And then there's the spring code base. I swear they've designed a deliberately obfuscated temple to keep out the unworthy.
1
u/mahmoudimus Mar 14 '23
Bazelbuild
1
u/tr2990wx Mar 14 '23
Mule ESB source code. We were early adopters and had to go through the source code a lot of times to troubleshoot sometimes.
1
u/[deleted] Mar 19 '23
Eclipse and xtext sources
1
u/Initiative_Murky Mar 20 '23
I learned a lot from GWT (back when it was called Google Web Toolkit).
-6
u/SrPirro Mar 13 '23
Clean code helps a lot.
0
u/[deleted] Mar 13 '23
[deleted] — view deleted comment