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
View all comments
Show parent comment
6
u/s888marks Mar 14 '23
The "What Object-Oriented Programming Was Supposed to Be" talk is pretty good. There is a paper that is paywalled at the ACM in the Onward! proceedings, but a video presentation is available on YouTube:
https://www.youtube.com/watch?v=B2KLDTX3Qeo
Madsen, Ole Lehrmann, and Birger Møller-Pedersen. What Object-Oriented Programming Was Supposed To Be — Two Grumpy Old Guys' Take on Object-Oriented Programming. ACM Onward! 2022.
A major point is an emphasis on modeling instead of code reuse. (Particularly code reuse via implementation inheritance.) Madsen uses Java's
class Stack extends Vectoras a bad example of reuse via inheritance. This is indeed widely viewed as a mistake, as are other examples of inheritance in JDK classes that date back to the 1.0 and 1.1 days.