Hacker News new | ask | show | jobs
by Clubber 3192 days ago
So you've never written code and come back to it 6 months later said said to yourself, "why did I do this?"
2 comments

Many years ago yes, but not recently.

If you're a supposed "rock star" senior developer doing this it means you're just a bad developer. If you're a junior doing it just means you have some maturing to do.

There are two kinds of that.

One is "wtf was I thinking", which comments won't help with.

The other is "where did the requirement come from", and that's (1) not a "cock-sure of themselves" sort of thing; and (2) best solved by putting a tracking number on the commit message, rather than traditional code comments.