1084
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

[-] Techmaster@lemm.ee 48 points 1 year ago

Just call it "state management" and nobody will even care.

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

Programmer Humor

19606 readers
191 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