121 Views
What happens when you write unreadable spaghetti code? It gets re-written by the next guy.
Join in on a hand-picked round up of the best .NET articles every day.
Curated by our Moderators and Voted up by our Community. Free.
What happens when you write unreadable spaghetti code? It gets re-written by the next guy.
I've had to rewrite no less than 3 entire systems because of it. In each case we patched and patched and hacked on them, keeping them hooked up to life support.
Eventually, in each case we decided that the amount of money required to rewrite the systems (including their future maintenance) was far less than what we would spend maintaining them in their current states.
It's a tough pill to swallow, wasting time patching and eventually rewriting anyway. The trick is to incorporate code review into your organization if possible. It should happen often, and very often early in the process. Pair programming can also lead to success if you have the resources.