Functional JavaScript Programming 4 - Method Chaining (WITH EXAMPLE)

Veröffentlicht am: 04 Januar 2017
auf dem Kanal: 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)


Auf dieser Seite können Sie das Online-Video Functional JavaScript Programming 4 - Method Chaining (WITH EXAMPLE) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Rocky DeRaze 04 Januar 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 376 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!