3 ms·
Yeah. Trade off is whether changing the code (which may have been referenced everywhere in the codebase) every time this happens cost more (in dev and debugging
by midnightclubbed 12y ago
Yeah. Trade off is whether changing the code (which may have been referenced everywhere in the codebase) every time this happens cost more (in dev and debugging time) than not using the singleton in the first case.
It's things like this that turn a 'sure, we can make this game split-screen' into 'you didnt tell us you wanted split screen, that's gonna take a while'.
- mbrock 12y agoWell, this is very hypothetical. I go by "you aren't gonna need it" and "do the simplest thing that could possibly work." Maybe I'll have to change a bunch of stuff when someone suddenly comes up with a split-screen requirement. I probably will have to change a bunch of stuff anyway. As long as the code isn't impossible to understand and change, I would in most cases prefer to add split-screen support once I know for sure I need it.