News for hackers. Stuff that matters.
Re:Cognitive Biases in Software Development by z3t4 on Tuesday March 31, 2020 @04:50AM (#22735901)
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.

There are no comments on this comment yet.