When you look at code you wrote last year
When you look at code you wrote last year


Onno (VK6FLAB) @lemmy.radio
Accurate, except the bottom right panel only happens in very limited circumstances, hardly ever after a year has passed.
Source: I've been writing software since 1983 or so.
44 0 ReplyCarighan Maconar @lemmy.world
Yeah same, also I don't usually need a year to think that. The next day often works. 😅
8 1 Reply
Horrabin @programming.dev
This is probably more accurate:
-Who the fuck wrote such a shit!
-WHO???
-...
-Oh... it was me...
39 0 Replyfayoh @sopuli.xyz Me at a previous workplace.
-This is a piece of shit, who is the code owner of this module.
-
Ah, it's me ("inheriting" code ownership when someone left was common)
-
Who did this change
-
Ah, it was me
-
Surely I just made a minor change to this line here, who wrote the function.
-
it was me, it was me all the way down
Fits the general theme of the thread as it was not giving any trouble for a year before being found.
29 0 Replyantimidas @sopuli.xyz The more frustrated you are when running
git blame
the more likely the command turns out to be a mirror.23 0 Reply
-
stebo @lemmy.dbzer0.com
And I always think I write good comments until a year later I'm like these comments don't help shit
21 0 ReplyAppoxo @lemmy.dbzer0.com
Try to write as if you are explaining the functionality to an unrelated 3rd party like a new hire.
4 0 Replyscutiger @lemmy.world Yeah, write it for the person who has to replace you when you inevitably get laid off so that your company can hire someone for half your salary.
5 1 Reply
DacoTaco @lemmy.world
Me during code reviews of other people
12 0 ReplyUnfortunateShort @lemmy.world
*yesterday
10 0 ReplyReptorian @programming.dev Sometimes, I just rewrite my code until it is good enough. Other times, I leave it to my memory, so I can figure it out later. And others, I'm just not happy about it, like the times I did bigbin2dec and it would only work well with something like thread-ripper.
9 0 Replydanc4498 @lemmy.world There’s an exponential amount of time between each panel. 1 hour, 5 hours, 2 days for the answer.
5 0 ReplyDie Martin Die @sh.itjust.works s/year/week/
4 0 ReplyMystikIncarnate @lemmy.ca To be fair, this is also me when I look at a network setup years later. (I do IT with a specialty in networks)
3 0 Replyspartanatreyu @programming.dev
This is why you're meant to comment your code.
Your code tells you "what", your comments tell you "why".
Here's a good review of comments in the redis codebase: https://antirez.com/news/124
2 0 Replystubing @programming.dev testing
1 0 Reply