I recently bumped into a programming-related blog entry by Chad Austin, father of Sphere and a member of the IMVU team. Entitled 10 Pitfalls of Dirty Code, it first lists the ways code can turn sour:
Then he goes on to list how bad code can bite you back:
Emphasis mine. If you don't take measures to keep your programs clean, they will get worse. All on their own. It will rot, and it will drag you down with it. If you don't, your code will succumb to the broken windows theory, as Paul Graham writes:
It's pretty clear now that the broken windows theory applies to community sites as well. The theory is that minor forms of bad behavior encourage worse ones: that a neighborhood with lots of graffiti and broken windows becomes one where robberies occur. I was living in New York when Giuliani introduced the reforms that made the broken windows theory famous, and the transformation was miraculous. And I was a Reddit user when the opposite happened there, and the transformation was equally dramatic.
Your code may not seem much like a community anything, but the principles apply all the same.
Code yearns to become rigid. It kicks and screams to stay the way it is, all the time. That rigidity is your enemy. Don't be afraid to break stuff. If you don't change your code, it'll turn bad, and it's all downhill from there.
It's your code, folks: keep it clean.