this post was submitted on 06 Jul 2025
18 points (100.0% liked)

programming

258 readers
3 users here now

  1. Post about programming, interesting repos, learning to program, etc. Let's try to keep free software posts in the c/libre comm unless the post is about the programming/is to the repo.

  2. Do not doxx yourself by posting a repo that is yours and in any way leads to your personally identifying information. Use reports if necessary to alert mods to a potential doxxing.

  3. Be kind, keep struggle sessions focused on the topic of programming.

founded 2 years ago
MODERATORS
 

If they didn’t exist in a language would you be upset? Any obvious things that can’t be done without global variables? I don’t think there is, but I could have missed something. I know that Haskell doesn’t have them and I think some newer ones like V also don’t have them.

you are viewing a single comment's thread
view the rest of the comments
[–] VibeCoder@hexbear.net 8 points 2 weeks ago

Fine for short scripts. Good to avoid for everything else and you should have a good reason to stray from the default if you’re gonna do so. No one instance of global state is a huge deal but it piles up quick as projects age.