Kevlin Henney on Nostr: Suggestion for a AI-based coding assistant: a comment dissonance checker. Red ...
Suggestion for a AI-based coding assistant: a comment dissonance checker.
Red squiggles under comments that contradict what the code actually does. Blue squiggles for comments that add no value to what is already obvious from the code.
Also, blue squiggles on code that could be improved to make a comment superfluous, e.g., rename a variable to be more explicit rather than having a comment explaining what the variable is for.
Published at
2025-02-17 16:53:20 UTCEvent JSON
{
"id": "375227c378ae19efa624bf72d3b1c15ccb8d683e249d85536a788913a8e95866",
"pubkey": "f130e8b69d2051a1364d630e79e2835f773820f1deb998b28cd6364a315d20e3",
"created_at": 1739811200,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/@kevlin/114020266812630552",
"web"
],
[
"proxy",
"https://mastodon.social/users/kevlin/statuses/114020266812630552",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/kevlin/statuses/114020266812630552",
"pink.momostr"
],
[
"-"
]
],
"content": "Suggestion for a AI-based coding assistant: a comment dissonance checker.\n\nRed squiggles under comments that contradict what the code actually does. Blue squiggles for comments that add no value to what is already obvious from the code.\n\nAlso, blue squiggles on code that could be improved to make a comment superfluous, e.g., rename a variable to be more explicit rather than having a comment explaining what the variable is for.",
"sig": "8fb5076e5328be6b9003f901b6240b7e37839003db15a5260ab622325cc29e6227d793329a2fd07de9ebfa6459e644285e3c0922a47d605e1d876b9bc7ef56bb"
}