this post was submitted on 20 Apr 2026
8 points (83.3% liked)

JavaScript

2739 readers
4 users here now

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] bitcrafter@programming.dev 3 points 2 months ago (1 children)

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 2 months ago

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