Re:Ask HN: How to keep yourself accountable?
by giancarlostoro on Friday September 20, 2019 @07:15AM
(#21025329)
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.
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.