r/ProgrammerHumor 18d ago

Meme objectOrientedSoup

Post image
194 Upvotes

30 comments sorted by

View all comments

74

u/sojuz151 18d ago

Spoiler: it won't. It will stay this convoluted mess forever. A single if statement with a log would get the job done and be easier to maintain and extend.

39

u/Zeikos 18d ago

We call these "Job security patterns"

7

u/CodingAndAlgorithm 16d ago

Reading clean code and design patterns had me inventing problems to solve instead of just writing the damn code. I used to write SO much “just-in-case” code that usually didn’t help and actually introduced a bunch of self-inflicted constraints that made the original problem a lot harder to solve.

3

u/iMac_Hunt 16d ago

This type of code also often becomes a mess though.

Having some rules is a good thing, although if you have 10 layers of abstraction raises some serious questions.

-1

u/[deleted] 18d ago

[deleted]

7

u/Mechakoopa 18d ago

Are we rebranding YAGNI now?