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

Programmer Humor

19564 readers
1005 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] 86 points 1 year ago (15 children)

Just create a global object and stuff your variable in there. Now you have a global singleton and that's not a purely bad practice :D

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

Real enterprise programmers know that everything should be on the stack... so they declare a List《void*》 in main.

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

Real enterprise programmers know you can get another job in the next year or two so fuck best practice

load more comments (1 replies)
load more comments (13 replies)