(no title)
disintegrator | 2 months ago
The remarks about code comments are little too extreme in my opinion. Some code can be difficult to understand at face value. Like I’m writing a Vite plugin and it has code like this:
const moduleId = "virtual:mypkg";
const resolvedModuleId = "\0" + moduleId;
Unless you’ve written Vite/rollup plugins, which many folks haven’t, you’re going to appreciate a comment that at least points to some docs.If anything, succinct code comments that explain obscure conventions or describe relevant critical requirements are worth their weight in gold because they are valuable tokens for a coding assistant.
disintegrator|2 months ago
philipallstar|2 months ago
From the article:
> I definitely think you should use feature flags - just not abuse them.
AntonZ234|2 months ago
justincormack|2 months ago
disintegrator|2 months ago