3 ms·
This seems like more of a case of over-organization, and abstracting things before it becomes necessary (premature optimization etc...). There are ways to impl
by Benjammer 10y ago
This seems like more of a case of over-organization, and abstracting things before it becomes necessary (premature optimization etc...).
There are ways to implement OO where you only add complexity when it reduces the size of the code base significantly, and things like that. Like, leave your monolith class in place, but then maybe move some boilerplate code into it's own class/function once you've copy-pasted it 2 or 3 times. If you find yourself using a dictionary and doing the same, somewhat-peculiar manipulation on the data structure more than once, maybe create a dictionary subclass. Wait until you see the obvious "bad code patterns" emerging and then use OO to fix them, don't just go ham and start arbitrarily "applying principles" until you get to Factory<factory> world.