by makecheck · 14y ago · 0 comments
It's also worth noting that even if you believe you know how to improve/simplify/whatever, it may be worse than you think and sometimes you don't figure out the extent of the complexity until days have gone by.
This, like many things, is a trade-off and not a set rule. In brand new code, by all means make it small and pretty and documented and whatever else would win it an award; but in established code bases be smart about what you "fix".
It was hard to criticize, though, because he pretty much single-handedly got the company off the ground by quickly implementing features people were willing to pay for. This code was good enough to get the company up to $2 million annually.
The downside is we spent about a year re-writing the software to get it to a state where the company could scale to higher levels. During that year we had to stop adding new features.
I remember getting very frustrated with the code quality, but I often wondered whether that was just a price we had to pay to get cash flow positive.
Dirty code not always has to be refactored. Most of dirty code just dies together with useless functionality (wrong guess on business side).