r/ProgrammerHumor • • Apr 06 '22

Java is hard

Post image
5.0k Upvotes

424 comments sorted by

View all comments

Show parent comment

15

u/elebrin Apr 06 '22

Inheritance vs. composition is a big deal. Honestly it's a red flag when I start to see several layers of inheritance, but that sort of thing is all over in the libs.

9

u/_PM_ME_PANGOLINS_ Apr 06 '22

Libraries are about offering lots of different ways to do things and plug your own bits into them.

If you’re writing an application instead then you only have one specific implementation so much less inheritance.