Best book for Functional Programming in JS - https://www.amazon.com/Functional-Pro...
How to write Method Chains in JavaScript?
How to get started in Functional Programming on JavaScript?
In this video tutorial, I talk about the basics of Functional Programming by bringing in Method Chaining. What is it? Find out in the video.
METHOD CHAINING:
=================
1. A common pattern in JS
2. This technique is an object creation software design pattern - also called as the Builder Pattern
3. Allows you to vary a product’s internal representation.
4. Encapsulates code for construction and representation.
5. Provides control over steps of construction process.
6. Construction details are hidden from the client entirely
7. Also known as 'Cascading'
8. It is essentially = Calling one method after another in ONE continuous line of code
9. Allows us to read better = removes bulky blocks
10. Temporary variables are not created in this process
11. Effortlessly read chainable code
12. Works with 'this' being returned
13. Seen in JQuery a lot
Code File - https://jsfiddle.net/rockyderaze/ooqv...
JSFiddle - https://jsfiddle.net/
Method Chaining in Functional JavaScript Programming by Rocky DeRaze (WITH EXAMPLE)
Nesta página do site você pode assistir ao vídeo on-line Functional JavaScript Programming 4 - Method Chaining (WITH EXAMPLE) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Rocky DeRaze 04 Janeiro 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 376 vezes e gostou 1 espectadores. Boa visualização!