How to cope with bad code
General tip:
if (it is working)
Do (not touch it);
else
{
Make (as few modifications as possible)
Or (it will stop working at all);
}
This is experience of generations.
–alemjerus
http://stackoverflow.com/questions/2100009/ddg#2100030