Tech Lead/Team Lead. Senior WebDev.
Intermediate Grade on Computer Systems-
High Grade on Web Application Development-
MBA (+Marketing+HHRR).
Studied a bit of law, economics and design
Location
Spain
Education
Higher Level Education Certificate on Web Application Development
Specially as the chain grows and for readability: you can actually read them from left to right in comma separated names, plus having just one initial arg usually helps to avoid side-effects.
So it's not a niche concept but a generic one, a nice to have (and use).
That's a bit of a silly example but it may work just to showcase, also you can find another example in the post 🙂
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Sure!
If you apply good practices and split the code in single-responsibility functions you'll end up chaining quite a few of them.
In OOP you'll do something like:
Whereas in functional programming it will look something like:
Which is objectively better than
Specially as the chain grows and for readability: you can actually read them from left to right in comma separated names, plus having just one initial arg usually helps to avoid side-effects.
So it's not a niche concept but a generic one, a nice to have (and use).
That's a bit of a silly example but it may work just to showcase, also you can find another example in the post 🙂