Functional JavaScript Programming 4 - Method Chaining (WITH EXAMPLE)

Pubblicato il: 04 gennaio 2017
sul canale di: Rocky DeRaze
376
1

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)


In questa pagina del sito puoi guardare il video online Functional JavaScript Programming 4 - Method Chaining (WITH EXAMPLE) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Rocky DeRaze 04 gennaio 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 376 volte e gli è piaciuto 1 spettatori. Buona visione!