News for hackers. Stuff that matters.
Re:Thirteen Years of Bad Game Code by and0 on Friday March 31, 2017 @10:27AM (#14004113)
Agreed on globals. I learned to code making a huge Java + OpenGL game engine some years back, right when scripted web frameworks were really blowing up and people were becoming test-obsessed. Every new article said that global variables and static anything were a deadly sin, so I did some really ugly things to avoid using them. Now I think global state is significantly simpler for certain systems, better than trying to pass that state around when it'll never be instanced.

There are no comments on this comment yet.