Hacker News new | ask | show | jobs
by fastball 2225 days ago
I was actually delighted to discover that I've matured (ossified?) enough as a programmer that my source code is in fact fairly deterministic: the other day I somehow managed to completely wipe a fairly complex function (100+ LoC) from my repo before I committed it. I did this a week or so after I initially wrote the function. I then rewrote the function from scratch, with very little memory of how I wrote it the first time, just knowledge of what it needed to do. Ironically enough, almost as soon as I finished writing this function, I found a copy of the original one that I'd somehow stashed and forgotten about, and the two functions were literally identical.
2 comments

Interesting, I've noticed the exact opposite. For me, rewriting a program produces a slightly different program with different trade-offs. It's rare to have the time to build a bunch of different implementations of the same code, but when I have time it results in code that I'm very happy with.
That's pretty cool actually. That speaks to your consistency as a programmer.