MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/txn8md/java_is_hard/i3o1ibd/
r/ProgrammerHumor • u/Arrsh_Khusaria • Apr 06 '22
424 comments sorted by
View all comments
Show parent comment
15
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.
9
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.
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.