| ▲ | xp84 3 hours ago |
| Useless? So you never use “git annotate” or your IDE to see who wrote a line of code whose purpose puzzles you, and go to the commit message to see what they were trying to accomplish? This is invaluable to me as long as commit messages are clear. As a manager, one of the first things I do is make sure that the PR titles (the PR text becomes the commit messages in squash-merging workflows) at minimum begin with a ticket number. Then we can later read both the intention and the commentary on it. |
|
| ▲ | PUSH_AX 3 hours ago | parent [-] |
| > Useless? So you never use “git annotate” or your IDE to see who wrote a line of code whose purpose puzzles you, and go to the commit message to see what they were trying to accomplish? Personally no, the code is the "truth". If I need more I'm going to open a dialog with the author, not spend time trying to interpret a 7 word commit message, "good" or otherwise. |
| |
| ▲ | macintux 3 hours ago | parent | next [-] | | The code can only convey what is being done (and then, in some cases, only superficially). It can't convey what decisions were made, what alternatives were discarded, what business motivations may have led to that code. And for old enough code, the author may not be available, or more likely doesn't remember. | | |
| ▲ | PUSH_AX 2 hours ago | parent [-] | | Fine, but none of that is in a normal commit message, lets be real... | | |
| ▲ | mgfist an hour ago | parent [-] | | Which circles back to why it's important for leadership to tackle this | | |
| ▲ | PUSH_AX an hour ago | parent [-] | | Yes, but not in the form of commit messages, the parent comment described things better suited to jira tickets, documentation etc. It feels like we're trying really hard to stretch the utility of commit messages here... | | |
| ▲ | macintux 35 minutes ago | parent [-] | | Mainly I was pushing back on: the code is the "truth" I don't feel that is an accurate statement for any complex system. | | |
| ▲ | PUSH_AX 29 minutes ago | parent [-] | | I don't like complex systems, and I work hard not to create them. | | |
| ▲ | mgfist 16 minutes ago | parent [-] | | Sure but code can't capture everything. Maybe with enough comments I guess, but not code alone. For example, code won't tell you that this feature was timeboxed hence this edgecase was not supported |
|
|
|
|
|
| |
| ▲ | wreath 2 hours ago | parent | prev [-] | | And what of the original author is not there anymore? | | |
|