-10
Writing Comments Is Lazy Coding (javascript.plainenglish.io)
submitted 11 months ago by [email protected] to c/[email protected]

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 11 months 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.

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

JavaScript

138 readers
1 users here now

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

founded 1 year ago
MODERATORS