3 ms·
I also write the most dumb and simple code and if it works, then great, I don't touch it until it needs to be optimized or more likely: removed. Sometimes I do
by z3t4 7y ago
I also write the most dumb and simple code and if it works, then great, I don't touch it until it needs to be optimized or more likely: removed.
Sometimes I don't really know what I'm doing, just getting all tests to pass. Then once it's working, when I know why it works, I will clean it up by removing unnecessary variables, double negations, and name the magic numbers, etc, and try to make it as simple as possible.