1075
submitted 11 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 86 points 11 months ago

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] 13 points 11 months ago

So you saying, just the tip?

load more comments (14 replies)
this post was submitted on 08 Oct 2023
1075 points (96.6% liked)

Programmer Humor

19197 readers
1198 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