10
you are viewing a single comment's thread
view the rest of the comments
[-] bitcrafter@programming.dev 4 points 1 month ago

Ugh, I absolutely hate reading code with a ton of variables that are only used once, because each introduction of a variable is a new thing that I have to first parse and then track to figure out what it does. I would much rather read a pipeline that expresses what is going on concisely without introducing extraneous elements. In particular, I thought that the pipeline at the start of the article was perfectly clear and did not need any of the subsequent modifications.

[-] bitjunkie@lemmy.world 2 points 1 month ago

Throwaway variables are an antipattern. Say what you will about Airbnb as a company, but their JS style guide is fucking dead on.

this post was submitted on 20 Apr 2026
10 points (81.2% liked)

JavaScript

2727 readers
2 users here now

founded 3 years ago
MODERATORS