this post was submitted on 25 Oct 2023
107 points (95.7% liked)

Programmer Humor

19589 readers
804 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 10 comments
sorted by: hot top controversial new old
[–] [email protected] 29 points 1 year ago

Nothing more permanent than a temporary solution.

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

It's just a tinsy bit of technical debt. How bad could it be?

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

How bad could it be?

Well, as long as it is well documented...I'm sure it will be fine. (as I am not that one that will have to maintain it)

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

That’s why everyone switches jobs every few years.

Sure, the increased pay is nice, but the real benefit is not having to deal with the catastrophically awful code that you’re forced to write because product wants to ship this 3 months ago and you haven’t been given enough time to design and implement the system in a way that actually makes sense.

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

throws it on the giant pile

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

Product: deletes pile

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

At this moment, I am staring at a 200-line block of postgresql that has about 40 JOIN clauses. It is not trivially or realistically debugable, testable, or extensible by anyone, including the people who wrote it (and no, I didn’t write this shitshow). There are basically zero nuanced tests around it, despite the fact that that’s a banner I’ve carried in a pretty militant fashion since starting at this place about 2.5 years ago, meaning that I trust this baroque confluence of relational db logic about as far as I can throw my car. It was done this way because “we’ll have time to go back and optimize it later (oh, sweet summer child)”.

I’m slowly going insane.

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

Oh, I was fearing we worked together, so I just went to check one of my workplace's megaviews. But no, it's 448 lines.

I wrote its first version a few years ago, with less than 100 lines, then I rewrote it with common subqueries so it could be actually maintained. It was much larger by that point. Later I removed some of the ambiguous (and subtly bugged) subqueries and rewrite it to use only about half of them. Looks like I need to do something about it again.

My consolation is that I'm not the one maintaining it.

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

I'm paid a salary, not hourly.

Don't kill yourself to over engineer code that you'll end tossing.

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

People try to be overachievers by exceeding expectations and then are often late or delivering a broken product.

It's hard to tell perfectionists not to be perfectionists though.