Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One that was written from scratch, by me. All others are terrible.


The problem I have is, I'll revisit code I wrote 1-2 months prior and swear someone else wrote it.


Same.

I know I wrote perfect, maintainable code that can easily live in my brain.

But when I go to work on it again a few months since I wrote it, it seems like some asshole stepped in and overwrote my beautiful code with a bunch of jumbly mish-mash and had the gall to overwrite the git commit history with it, using the exact same commit messages, and my own name!


Right. I even quietly mumble 'asshole' while reading it.


This is the weird thing. I heard it a lot and I don't know if people just over-exaggerate or maybe I'm just forgetting things quicker, but I don't have that. I come to the code after month or two and it is the same as if I came a week or two. I also don't feel ashamed of it.

I also got compliments of my code in the past.

I do try to make my code readable and avoid being clever. Basically my rule of thumb is that if I need to write a comment about block of code what it does, then that code is too complex.


Same. I think it's a meme that people keep repeating, and for some fraction of them it's true.


A month or two is nothing. Go back to it after 5 years.


I used month or two, because that's what OP used and that seemed ridiculous. Almost like OP tried to make a meme that s/he didn't experience themselves.

But anyway, I recently found code that I wrote 15 years ago. And when looking at it actually makes me feel depressed. It looks like something I would write today so I don't think I got much better.

But yes, I do have to look over it again to understand how it works as I forgot everything.



Heh. Can relate.

Even my own codebases/config. management systems are difficult, if I haven't dealt with them in a while.

However, I am pretty good at understanding old stuff I did, mainly because I leave a legacy for myself.

https://littlegreenviper.com/leaving-a-legacy/


We were all thinking it, thank you for having The Courage.


One day I got an unexpected email from someone asking permission to use a piece of code on github I forgot I wrote almost 10 years ago without a license clause. I was very surprised and confused because I forgot I wrote that code, and I was not involving coding for quite some years and my github profile was blank without any contact information. I asked. It happened the guy simply made a search and found a post on a forum with my nickname, and email address - newly created recently. At that moment, it clicked and I felt some unusual arrangment. I quickly added an open source license, and the guy, CTO of a decent company, offered to make a donate. That made me a day.


Mine is always terrible and the others are terrible as well.


...unless I haven't looked at it in a few years.


This entire website in a single comment




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: