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

Programmer Humor

19589 readers
2204 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] 44 points 1 year ago (3 children)

Not if you leave the project soon enough. It's like tech debt chicken.

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

Then, at your new job, you see garbage code and wonder what dumbass would put global variables everywhere

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

That's how this industry works ;)

[–] [email protected] 1 points 8 months ago

You're gonna see that even if you were pious at your own job. So you're only wasting time.

load more comments (20 replies)
load more comments (34 replies)