this post was submitted on 10 Feb 2026
277 points (95.7% liked)

Programmer Humor

29658 readers
839 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] tatterdemalion@programming.dev 68 points 1 day ago (10 children)

In over ten years of professional programming, I have never used inheritance without regretting it.

[–] Valmond@lemmy.dbzer0.com 2 points 1 day ago (1 children)

That's wild. What did you use it for?

[–] tatterdemalion@programming.dev 1 points 11 hours ago

Some legacy Python code that already used inheritance. I had to extend it, and it was pretty infeasible to refactor the whole thing to not use inheritance. Not sure if I technically regretted that decision, but it was definitely painful, since Python inheritance makes it really hard to follow program control flow.

load more comments (8 replies)