Doing this attaches your reputation to your code. Anybody reading it knows to expect a certain level of quality given it is written by you, and you get the much needed motivation to write good code.
Amazing piece of advice I picked from the Pragmatic Programmer.
Well that's what version control does, so if you remind yourself that when someone does a git blame later, and they see who wrote the awful code and dread your existence, you might want to fix it up.
This is an incredible advice - from my experience I know it works, though I never formulated it this way (or even thought about this). Thank you for spelling it out!
Doing this attaches your reputation to your code. Anybody reading it knows to expect a certain level of quality given it is written by you, and you get the much needed motivation to write good code.
Amazing piece of advice I picked from the Pragmatic Programmer.