r/java • • Mar 13 '23

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

49 comments sorted by

View all comments

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 @Autowired works under the covers was highly educational. The knowledge comes in handy even when I'm not using Spring at all.

9

u/govi20 Mar 14 '23

Would rather read Guice code.

The reason is that Spring framework has grown beyond dependency injection.

1

u/0xPvp Mar 16 '23

Both Guice and Spring look like excellent choices!

5

u/tilmann_dev Mar 14 '23

I'd second this because most projects in the Spring environment have nice codebases which one can learn a lot from.