4 ms·
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.
by vikingerik 4y ago
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.
- Arrath 4y agoNext up: comments that dynamically generate from the code itself, like tooltips in a game. /s "...only from %s domains..."
- mr_toad 4y agoLike GPT in reverse? I wonder how long it will take before someone tries to use an AI to document code.
- tablespoon 4y ago> 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.