Aug 25, 2017 · 1 min read
In my experience this is one of the top reasons why bad code entered the code base. That only a single approach to the problem was ever considered. And, when a better solution was found during review or later, no code was thrown away. The first solution was just modified.
I have no clue why this seems to be so common.
1. Time pressure? Stress?
2. Loss aversion bias? (Don’t want to “lose” work by throwing code away?)
3. If it works it works? Why would I spend time coming up with alternatives to a working solution?
I honestly don’t know.
