How complex should code be?
As Einstein said: Make everything as simple as possible, but not simpler. It applies to code as well as to physics. Use your judgement – will it get easier to maintain? Often by reducing large if/else messes into something smaller you remove corner cases that didn’t need to be there, preventing bugs that may have … Read more