News for hackers. Stuff that matters.
Re:Don't Let AI Write for You by chrismorgan on Tuesday March 31, 2026 @12:44AM (#47582849)
So often have I started writing a commit message about why I’d done something this way, and realised a problem or thought of another approach, and ended up throwing away the entire change and starting from scratch.

(Aside: you should probably write longer commit messages.)

Re:Don't Let AI Write for You by nine_k on Tuesday March 31, 2026 @01:07AM (#47582957)
Corollary: write the commit message first, implement things later! Not a joke, this is almost like TDD works. (TDD writes formal tests, which is much more involved.)
Re:Don't Let AI Write for You by teddyh on Tuesday March 31, 2026 @05:09AM (#47584618)
Documentation-driven development.
Re:Don't Let AI Write for You by sudo_rm on Tuesday March 31, 2026 @09:24AM (#47587032)
Second this. After having a chat with some coworkers, I've been attempting to write more thoughtful and longer commit messages. I had this exact experience yesterday after I had staged my commit and was writing the message. I realized that there was a better way to do this change and redid the whole thing.