News for hackers. Stuff that matters.
Re:The C++ standard for the F-35 Fighter Jet [video] by TuxSH on Monday December 08, 2025 @05:29AM (#46190686)
> global variables are considered bad design

Global mutable variables, and they usually tend to be grouped into singletons (solving initialization issues, and fewer people bat an eye)

Re:The C++ standard for the F-35 Fighter Jet [video] by RealityVoid on Monday December 08, 2025 @02:30PM (#46196544)
Even global mutable variables are a problem only because they lend to spaghetti code and messy state handling if you use them in multiple places. But you could just... make a global variable and then handle it like you would a variable init with malloc. No functional issue there.