I used to like to rewrite code that I thought was "ugly" because it was not written in the modern way or it was not very generic or whatever.
I thought that doing that was often pretty easy so I thought "why has no one done this already?"
Later I realized that the fact that it was easy to change was what made it good and the changes I wanted to make to it would probably just make it more complicated.
That's the danger; good code is easy to change so it will easily get rewritten until it's not easy to change anymore.
Later I realized that the fact that it was easy to change was what made it good and the changes I wanted to make to it would probably just make it more complicated.
That's the danger; good code is easy to change so it will easily get rewritten until it's not easy to change anymore.