Re:Global variables are bad (2013)
by notacoward on Thursday July 26, 2018 @08:27AM
(#17616863)
Both global variables and gotos are bad. On the other hand, the contortions some people go through to get the same effect without using the actual construct are often worse. That's the real point. Design and implementation decisions should be judged based on what they do, not their superficial appearance. If code is littered with singletons and often-thrown exceptions, it's worse than if the programmer had been honest about using globals and gotos.
[ Parent
| on HN ]
There are no comments on this comment yet.