• bitcrafter@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    3 months 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
      link
      fedilink
      arrow-up
      0
      ·
      3 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.