News for hackers. Stuff that matters.
Re:Ask HN: Do you ever go back and admire a piece of code yo... by delusional on Friday May 08, 2020 @01:42PM (#23117402)
I love good commit messages as well, but it can be hard to convince people to write them. I always hear "Why? i don't use them" which is self propelling. You don't have good messages, so you don't read them when you want to know something, so you don't write good commit messages.
Re:Ask HN: Do you ever go back and admire a piece of code yo... by saagarjha on Friday May 08, 2020 @04:58PM (#23119374)
I don't really do comments all that often (generally, only for "Chesterton's fence-esque" things) but I do really rely on good commit messages. They are really helpful when going back in history and trying to get a general idea why something changed.
Re:Ask HN: Do you ever go back and admire a piece of code yo... by hermitdev on Friday May 08, 2020 @02:56PM (#23118158)
Another thing I like to put in commit messages is the ticket# (of what ever bug tracker you're using) of the feature/bug task that drove the change.