Ask HN: Do you ever go back and admire a piece of code you wrote?
131–140 of 267 posts
Re: Ask HN: Do you ever go back and admire a piece of code you wrote?
#132Earlier quoted context omitted.
When I started my first programming job the CEO told me that programming is 59 minutes of feeling like an idiot and 1 minute of feeling like a genius. It's really stuck with me, and has so far proven true.
What's awful are those bad days when it's actually hours and hours of feeling like an idiot, draining you away, and then when you figure it out you still feel like an idiot because first off it was so simple and second of all solving something in minutes is not going to wash away hours of feeling like an idiot. Luckily as I have gotten older I have gotten fewer and fewer of those days.
Re: Ask HN: Do you ever go back and admire a piece of code you wrote?
#133I'm a fan of my recursion scheme examples :p For the most part my standards get higher as time goes on though. So only small things!
Re: Ask HN: Do you ever go back and admire a piece of code you wrote?
#134Re: Ask HN: Do you ever go back and admire a piece of code you wrote?
#135I don't code, but I do write. I regularly re-read my own writing to spot any problems, but sometimes just for pleasure. For example, about 18 months ago I wrote a 5 part series on how to build a direct conversion receiver for the ham radio bands from scratch. I learned tons along the way and it was really rewarding to write. Re-reading it recaptures some of that joy and reminds me that I'm a good writer, even when I…
Re: Ask HN: Do you ever go back and admire a piece of code you wrote?
#136Everyone's talking about code, but I do this with carpentry. Right now, I'm working as a trim carpenter in residential construction, and I pride myself on doing as good a job as I can. As a result, when I come back to a job to install door hardware after everything is painted, I sometimes just wander around the house and admire my work. Especially tricky details that took a bit of thinking to get right, even if no-on…
I do this with almost everything I make. The act of creating is an act of achieving an aesthetic you developed in your mind's eye, so it seems reasonable to want to spend some time admiring that aesthetic once achieved.
Re: Ask HN: Do you ever go back and admire a piece of code you wrote?
#137All the time. The old joke is about us looking at code we wrote six months ago, and being horrified at what we see. And I've had more than my share of that. But what's ALSO happened, many times, is I look at old code I wrote... and I'm IMPRESSED. Just blown away by the beautiful elegance and power of the abstractions I came up with, the sheer intelligence of the approach, the insight and lucidity oozing from the code…
Re: Ask HN: Do you ever go back and admire a piece of code you wrote?
#138Re: Ask HN: Do you ever go back and admire a piece of code you wrote?
#139What I like better is when you are bumbling through code you wrote a while ago trying to figure something out and there it is, a golden comment from past you, telling future you why you wrote shit this way. Usually it's some corner case or weirdness in an API you're calling.
Re: Ask HN: Do you ever go back and admire a piece of code you wrote?
#140All the time. The old joke is about us looking at code we wrote six months ago, and being horrified at what we see. And I've had more than my share of that. But what's ALSO happened, many times, is I look at old code I wrote... and I'm IMPRESSED. Just blown away by the beautiful elegance and power of the abstractions I came up with, the sheer intelligence of the approach, the insight and lucidity oozing from the code…