I try to leave comments for myself and others when I’ve had to write code that looks less than ideal. It’s nice to know something was hacked in for convenience or because it was the best solution at the time. :)
Yes, when you're knowingly writing less than ideal code.
But we're talking about writing code that you thought was great when you wrote it, but when you come back to it a few years later, you can see how far from great it really was.
Which, for me, accounts for about 80% of everything I've written.
But we're talking about writing code that you thought was great when you wrote it, but when you come back to it a few years later, you can see how far from great it really was.
Which, for me, accounts for about 80% of everything I've written.