r/ProgrammerHumor • • Nov 25 '22

Meme Coding strategies

Post image
52.2k Upvotes

385 comments sorted by

View all comments

242

u/tiberiumx Nov 25 '22

Well-thought permanent solution. Deprecated after 3 months due to requirements change

This is why you don't write code you don't need. The number of times I've seen hundreds of lines of some overwrought generic extensible solution trying to anticipate requirements that didn't exist that could be 20 lines of easy to debug no-bullshit code is too damn high.

6

u/Feroc Nov 25 '22

A short conversation I had with a co-worker.

Him: „Damn, why didn’t I make this function flexible enough to [solve current issue]?

Me: „When did you write that function?“

Him: „4 years ago…“

—-

I guess you can imagine how some parts of our code looks like.