Functional JavaScript Programming 4 - Method Chaining (WITH EXAMPLE)

Published: 04 January 2017
on channel: 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)


On this page of the site you can watch the video online Functional JavaScript Programming 4 - Method Chaining (WITH EXAMPLE) with a duration of hours minute second in good quality, which was uploaded by the user Rocky DeRaze 04 January 2017, share the link with friends and acquaintances, this video has already been watched 376 times on youtube and it was liked by 1 viewers. Enjoy your viewing!