1084
you are viewing a single comment's thread
view the rest of the comments
[-] idunnololz@lemmy.world 86 points 2 years 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

[-] mdk_@lemmy.world 13 points 2 years ago

So you saying, just the tip?

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

Programmer Humor

24650 readers
22 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