Lemmy LIETUVA
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
codeinabox@programming.dev to JavaScript@programming.devEnglish · 2 months ago

Why I don't chain everything in JavaScript anymore

allthingssmitty.com

external-link
message-square
13
link
fedilink
1
external-link

Why I don't chain everything in JavaScript anymore

allthingssmitty.com

codeinabox@programming.dev to JavaScript@programming.devEnglish · 2 months ago
message-square
13
link
fedilink
Why I don't chain everything in JavaScript anymore - Matt Smith
allthingssmitty.com
external-link
JavaScript chaining looks clean at first, but it can hurt readability and hide extra work. Here's when to break chains into simpler steps.
  • KaKi87@jlai.lu
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    I disagree with this article for the same reasons as everyone else.

    I’ll also add it’s possible to add comments between each line of the pipeline.

    I aslo use promise chaining as pipeline pattern for non-chainable calls, as described here : https://blog.kaki87.net/promise-based-pipe-in-js/

JavaScript@programming.dev

javascript@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !javascript@programming.dev
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 9 users / week
  • 12 users / month
  • 58 users / 6 months
  • 0 local subscribers
  • 2.73K subscribers
  • 85 Posts
  • 57 Comments
  • Modlog
  • mods:
  • Erlingur@programming.dev
  • Ategon@programming.dev
  • nick@programming.dev
  • BE: 0.19.18
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org