load all comments
hadesflames 9 points 3 years ago

Funny, take an upvote

But honestly, I have not used global variable in over a decade. It's completely unnecessary

path: 0 123224, hotness: undefined, score: 9, children: 2
EN20 3 points 3 years ago

It's more difficult when you work with a huge legacy code base that is full of them and you have to do days of work in oder to rewrite and test everything rather then just use one.

path: 0 123224 134888, hotness: undefined, score: 3, children: 1
azimir 7 points 3 years ago

Once the code has given into the temptation, every generation must bear the cost of those sins.

Yeah, I hear you on being handed the legacy base where someone in days of yore gave into the global temptation. Trying to refactor that kind of thing can take forever and it's often very brittle.

path: 0 123224 134888 134977, hotness: undefined, score: 7, children: 0
programmerhumor
programmerhumor

@lemmy.ml

login for more options
43801
1628
1576

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

go to feed...