'leiavoia' said:
I was in a similar situation and i did improved the… well, no, i completely scrapped the old code and started over from scratch. The old code was TheDailyWTF worthy. The new code was much much better. Doing everything from scratch was hard
Eeew, doing from scratch is a horrible plan. Then the next guy comes along and doesn't like your code, and decides to rewrite from scratch… meanwhile your competitors have shipped 2 new versions of their software based on "terrible" code and you are losing business.
He he. Actually, in our case it was virtually the only option. Let me say it like this: The previous "programmer" was using a separate database table for each user account... there were 10,000 tables... Do i need to go on? :-)