logoalt Hacker News

flakeslast Wednesday at 6:34 AM1 replyview on HN

The common toolkits today (spring boot, google guice, etc) are much more focused on composition over inheritance, by injecting arguments and implementing pure interfaces rather than extending base classes. Older legacy Java frameworks and bad teachers are more at fault than the Java language itself IMO.


Replies

crabmusketlast Wednesday at 6:35 AM

I take your point, though having `extends` as a first-class language feature surely encouraged that culture and approach in older frameworks right?

show 1 reply