-10
Writing Comments Is Lazy Coding (javascript.plainenglish.io)
submitted 1 year ago by aev to c/javascript

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
[-] Dirk@lemmy.ml 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.

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

JavaScript

141 readers
3 users here now

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

founded 1 year ago
MODERATORS