2 Ways of Looking at Old Code

There are two ways to looking at old code: "I can't believe I wrote this code" and "I can't believe I wrote this code."

I recently tabled a small module for about a month. I came back to it and had trouble remembering what I was trying to do. Why did I name my variables that way? What was the point of this function? How could this ever work? If anyone else had ever seen that code, I would have just crawled into a hole and died.

OTOH, I recently wanted to build a new UI gadget in javascript and remembered once writing something similar in VB years ago. As I went through that code, I thought, "This is really clever! Was I really that smart back then? Why haven't I written anything this cool lately? Am I losing it?" (The answer for me and everybody else is, "If you did it once, you can always do it again.)

Original thread:  http://news.ycombinator.com/item?id=1896338