this post was submitted on 08 Oct 2023
1081 points (96.6% liked)

Programmer Humor

19606 readers
232 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 144 points 1 year ago (39 children)

Is it really tempting for people? They've given me too many headaches when I've had to reformat or add functionality to files.

Unless it's a simple single use script that fit on the computer screen, I don't feel like global variables would ever be tempting, unless it's for constants.

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

Most people suck at software engineering.

Plus, there's always the temptation to do it the shitty way and "fix it later" (which never happens).

You pay your technical debt. One way or another.

It's way worse than any gangster.

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

amen

Plus, there's always the temptation to do it the shitty way and "fix it later"

double amen

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

In a 10 year old commit from someone who's left the company 5 years ago.

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

Bruh. I fixed software from the 90's.

Scientific software too. Which is way weirder.

😀

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

Why is that weirder? The people writing scientific software are, by and large, less good at writing software than people who only specialize in software development. I'd expect there to tons of terrible engineering practices in an old code base like that

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

good question.

Because even trivial things like Fourier transforms (to people like me) are very difficult to understand to those that don't know them. They took me years to understand. Non scientific software engineers do not understand those. It's just a different course of education.

You're also right about old code base as well. Algorithms like these belong in c++ (or C or fortran), and it's extremely difficult to explain why to people who have no understanding of numerical computing.

It's just different education.

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

That's like what happens if From Software made programming challenges.

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

I wish I was so lucky to have comments.

in real life, I'm fighting with - I'm not joking - a few dozen "quick patches". code does not reflect in any point functional requirements, and dude is adamant he's in the right and supersarcastic in any occasion.

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

I've been working at my current company for almost a year.

I had no idea it could be this bad.

I actually had to fight/plead with someone to "please read the code". Guy did get fired though.

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

Later is the name of the intern my company hired when I resigned :)

load more comments (22 replies)
load more comments (36 replies)