News for hackers. Stuff that matters.
Re: by nolok on Wednesday February 14, 2024 @05:24AM (#39368356)
Especially since it makes zero sense to do that. If you don't care about niceties and want to have a global variable without the absolute php-3 era failure prone jank just use a class static or hell even a function static or whatever. There is no reason whatsoever to use a global variable like that, hasn't been since ... decades now ? And then to name it data on top of it.
Re: by gorm on Wednesday February 14, 2024 @09:32AM (#39370174)
You are right, but for a project like this, with a name like this, it's rather artful and hacky. Nothing wrong in breaking the rules if you know what you are doing.