this post was submitted on 30 May 2024
394 points (94.6% liked)

Programmer Humor

37354 readers
91 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] MajorHavoc@programming.dev 50 points 1 year ago (2 children)

Interfaces are great.

Inheritance is often a sign that the previous developer didn't understand interfaces.

[–] scrubbles@poptalk.scrubbles.tech 23 points 1 year ago (1 children)

Broad generic claims like that tell me more

[–] MajorHavoc@programming.dev 24 points 1 year ago

Yep. I'm old, cranky, and prone to broad statements to get reactions.

That said, for any of you all that love inheritance, I'm judging you so hard. So hard. Very judged. I probably hate your code, and your friends' code, and your last teacher's code. Especially your last teacher's code.

[–] deathmetal27@lemmy.world 19 points 1 year ago

Prefer composition over inheritance. Though that doesn't mean inheritance has no place in programming.