I'm an idiot
Ever look at code you wrote several years ago and wince in pain? I just found some that was so bad I had to look away.
Take heart, hopefully we all improve with time. Would it not be more frightening if you looked at code you wrote years ago and said "I did it better then."
Sometimes I look back at stuff, and think - it's not quite as bad as I thought it was
Looking back at your old code and realizing how much you've learned since then, and how much your development skills have improved, is not completely a bad thing I think.
Mitch & Murray (from downtown)
And on the rather depressing other hand, I am almost afraid to look back, and see that I've not improved.
Looking back at old code and wincing is something I've become used to, and like everyone else says, it's good to know you've learnt a thing or two.
Funny thing ...
I am generally proud of my earlier work.
I'm actually a bit humble when it comes to the code I write now. Recently I shipped this comment as the header of one method (a string-parsing function which wraps lines to the screen width).
I have the unfortunate tendency to capture my unrealized dreams in the most appallingly binary formats. Given time constraints, these inevitably end up as fragments of the real thing, which leaves code that is good 'in theory', but hard to maintain. Always fun for the maintainer to dig through half finished implementations. Although, I guess an argument could be made that in some ways all implementations are only half finished. (Especially in the minds of their creators).
While there are plenty times when I do wince at my older code, has any else had the experience of looking back at previous code and thought "Wow. I did that? Cool."
Yes and no...
Unfortunately, my "Wow! I did that?" reactions are to code that I now have to figure out all over again, because I need to update it. I always think I over-comment things, until I have to revisit my code. :/
I have wondered when looking back at old code if i
Fog Creek Home