this post was submitted on 17 Jun 2023
328 points (99.7% liked)

Programmer Humor

19480 readers
1761 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 1 year ago
MODERATORS
 
top 15 comments
sorted by: hot top controversial new old
[–] [email protected] 25 points 1 year ago (1 children)
[–] [email protected] 7 points 1 year ago

There’s always a relevant xkcd.

[–] [email protected] 14 points 1 year ago

Lots of people here lamenting about this. But the truth is that good code is easy to modify/delete.

[–] [email protected] 13 points 1 year ago
[–] [email protected] 12 points 1 year ago (1 children)
[–] [email protected] 12 points 1 year ago (1 children)

Nothing lasts longer than a crudely thought out band aid solution to a not fully understood problem.

[–] [email protected] 2 points 1 year ago

That is why I am always so hesitant to allow code that should be cleaned up in a future task. I know that sometimes you have ship something NOW but it always hurts.

[–] [email protected] 8 points 1 year ago (2 children)

I feel like it's not that it couldn't be removed, but more that it's too low ROI. Devs are expensive

[–] [email protected] 3 points 1 year ago

The rainy day(that will never come) project

[–] AnarchistArtificer 3 points 1 year ago

True, that. Reminds me of the trap I've build for myself in many areas of my life. I grew up poor so even when I have money, when I see something expensive I want, my first instinct is "could I learn to make that myself?". I'm very good at making things, so the answer is usually yes, given a decent chunk of time to learn.

Unfortunately, at risk of sounding like a humblebrag, I am now too good at too many things. Because I, in theory, could make the thing and already posses the tools and knowledge to do so, I'm even more averse to buying the thing. However, the better I get at Stuff, the more limited (and expensive) my time is.

It's the same liminal space of "the plaster could be removed, but it's currently not worth it.

[–] [email protected] 3 points 1 year ago

Beautiful code, bad architecture

[–] [email protected] 3 points 1 year ago (1 children)

It wasn't well thought-out solution if it was obsoleted within 3 months.

Or the change was for a different product.

[–] [email protected] 4 points 1 year ago (1 children)

I've watched so much good code written professionally die because of the whims of leadership in the past.

[–] [email protected] 3 points 1 year ago

Good code does not equal to well thought-out solution.

I was directly responsible for many projects, and during analysis we always had questions about features where client said 'naah, never gonna need that'.

And I almost always added the foundation for such features, and almost always it was necessary within a year.

[–] [email protected] 2 points 1 year ago

To quote Uncle Bob: 'TODO means never do.'