Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

singeltons are rather common in game code, it's not that bad. What's wrong with ifdefs for platform specific code though? Alternative is to have different compile-time paths.


In my experience (with gamedev) it often leads to your game silently breaking on platform you're not building it for. Proper CI will catch this, but it still makes the feedback loop longer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: