| ▲ | mandeepsng 9 hours ago | |||||||||||||||||||||||||
Fair point — the "why" lives in the developer's head and no diff reader can recover it. The bet is that automating the "what" frees up your commit message to carry the "why" instead. Most messages today are wasted describing what changed because that felt easier to type. The pre-commit nudge you're describing is the better product though. | ||||||||||||||||||||||||||
| ▲ | magicalhippo 7 hours ago | parent [-] | |||||||||||||||||||||||||
> The bet is that automating the "what" frees up your commit message to carry the "why" instead. Right. For my work I'm not sure that bet would pay off. For (a contrived) example, say I see my colleague has changed a calculation from using
to
What has changed is pretty obvious. However without further input or context I can't tell why it changed. So I have to ask my colleague which informs me that the item_price field might be zero if it's not available, but the totals are always accurate.Well, if he'd written that in a comment above, or at least in the commit message, I wouldn't have to disturb him and wait for him to respond. That's the sort of issues I struggle with the most by far when it comes to browsing old commit history. Anyway, just my 2 cents, perhaps it's different for others with other types of work. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||