this post was submitted on 24 Oct 2023
-10 points (8.3% liked)

JavaScript

140 readers
1 users here now

A community to discuss all things JavaScript (and related areas, i.e. TypeScript)

founded 1 year ago
MODERATORS
 

Andrez Sainz de Aja writes that comments are a code smell: they make us lazy. Instead of using comments to convey intent, the coding should. But that is hard, so it is easier to write dumb coding and just put the intent into comments.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago

Comment anything in your code up to an ungodly amount! Code is for humans to read. The computer does not care about the comments.