News for hackers. Stuff that matters.
Re:I’m a productive programmer with a memory of a fruit fly by vikingerik on Monday September 19, 2022 @05:26PM (#32904236)
And the latter is a perfect example of what goes wrong, when someone adds "gov" to the regex but doesn't notice the comment to update it.
Re:I’m a productive programmer with a memory of a fruit fly by tablespoon on Monday September 19, 2022 @07:59PM (#32905818)
> And the latter is a perfect example of what goes wrong, when someone adds "gov" to the regex but doesn't notice the comment to update it.

That always gets trotted out, but it's sort of like "don't write code unless you can guarantee the code won't have any bugs, so never write any code."

The trick is write code and comments, but be a little skeptical of both. If you're disciplined (especially with commit messages), it's usually pretty easy to figure out a mistake or omission after the fact.

Re:I’m a productive programmer with a memory of a fruit fly by Arrath on Monday September 19, 2022 @06:33PM (#32905045)
Next up: comments that dynamically generate from the code itself, like tooltips in a game. /s

"...only from %s domains..."

Re:I’m a productive programmer with a memory of a fruit fly by mr_toad on Monday September 19, 2022 @08:39PM (#32906130)
Like GPT in reverse? I wonder how long it will take before someone tries to use an AI to document code.