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

So you saying, just the tip?

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

Programmer Humor

19564 readers
1756 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