4 ms·
Hard disagree. Except for, begrudgingly, logging those are all bad uses and you shouldn't do them. I find the append_work especially egregious. Never ever use
by forrestthewoods 2y ago
Hard disagree. Except for, begrudgingly, logging those are all bad uses and you shouldn't do them.
I find the append_work especially egregious. Never ever use a bloody global for that! Goodness gracious me. What an absolute and utter waste that provides zero utility. If you have a job system just pass a damn handle to the job queue. Good lord.
If everyone spent a little effort to not use globals the world would be a much better place. The value add of globals when they are mildly useful is so inconsequential such that it's basically never worth the effort.