this post was submitted on 08 Oct 2023
999 points (96.7% liked)

Programmer Humor

25511 readers
2484 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 2 years ago
MODERATORS
 
(page 2) 41 comments
sorted by: hot top controversial new old
[–] Blackmist@feddit.uk 3 points 2 years ago

Nothing wrong with global variables.

If anyone asks just say it's the singleton pattern.

[–] gandalf_der_12te@feddit.de 3 points 2 years ago
[–] CoWizard@kbin.social 2 points 2 years ago

Have you tried #ifdef'd global variables? Should definitely make things easier to read

[–] ipkpjersi@lemmy.ml 2 points 2 years ago

Nowadays they call it global state lol

[–] Sanctus@lemmy.world 1 points 2 years ago

Ironically, a guy named SingletonSean showed me how to avoid singletons.

load more comments
view more: ‹ prev next ›