Appendix A

How to Install Node In Your System

  1. Navigate to https://nodejs.org/en/download/ .

  2. Select your operating system and download the installer.

  3. Run the installer.

  4. Finish the setup.

Installing Depedencies

In node , we will install the dependencies via npm. npm will be part of your installation.

Run the following command to install babel :

npm install -g babel

Run the following command to install babel-node :

npm install -g babel-cli

Note that -g will install the scripts globally.

Index

A

  1. Abstraction

  2. Arguments function

  3. Arrays

    1. chain

SeeChaining operations
  1. functions

    1. filter

    2. map

  2. overview

  3. reduce function

  4. zipping arrays

    1. apressBooks object

    2. reviewDetails object

    3. zip function

  1. Arrow functions

  2. Asynchronous

B

  1. Binary function

C

  1. Cachable function

  2. Callback Hell problem

  3. Chaining operations

    1. apressBooks

    2. concatAll

    3. implementation

    4. projection functions

  4. Closures

    1. definition

    2. memoize function

    3. once function

    4. sortBy function

    5. tap function

    6. unary function

  5. Closures

SeeHigher-order functions
  1. Composable

SeePipelines/sequence
  1. compose function

  2. Composition

    1. compose function

    2. curry/partial function

    3. grep command

    4. many function

    5. map and filter function

    6. Unix philosophy

  3. concatAll function

  4. Container function

  5. crazy function

  6. Create and execute functions

    1. arguments

    2. arrow functions

    3. ES5 functions

    4. first simple function

    5. multiple statement

    6. return statement

    7. strict mode

    8. transpiler

  7. Currying/partial application

    1. addCurried function

    2. array

      1. finding number

      2. square

    3. binary function

    4. data flow

      1. partial application

      2. partial function implementation

    5. definition

    6. handling arguments

    7. logger function

    8. nested unary function

    9. vs. partial application

    10. revisting curry function

    11. tables function using currying

    12. tables function without currying

    13. terminologies

    14. unary function

    15. variadic functions

D

  1. Data flow

    1. implementing partial function

    2. partial application

  2. Data types

    1. nutshell

    2. passing a function

    3. returning a function

    4. storing a function

  3. Declarative programming

  4. done properties

E

  1. ECMASCRIPT

  2. Either functor

    1. creation

    2. implementation

    3. reddit

  3. Error handling

  4. ES6 functions

    1. babel-node

    2. exports

    3. ES6-Functionals

    4. imports

    5. initial setup

    6. loop problem

    7. modules

    8. Npm

    9. project setup

    10. source code

  5. every function

F

  1. filter function

  2. fns.reverse() function

  3. forEach function

  4. Functional programming

    1. abstraction

    2. benefits

    3. cachable

    4. declarative

    5. definitions

    6. ES6-Functionals

    7. imperative paradigm

    8. JavaScript

    9. mathematics

    10. meaning

    11. vs. methods

    12. parallel code

    13. pipelines and composable

    14. pure functions

SeePure functions
  1. referential transparency

  2. tax function calculation

  1. Functions

    1. arrow

    2. create and execute

SeeCreate and execute functions
  1. ECMASCRIPT

  1. Functor

    1. container

    2. definition

    3. Either

      1. creation

      2. implementation

      3. reddit function

    4. map function

    5. MayBe

SeeMayBe
  1. point clear

G

  1. Generators

    1. Callback Hell problem

    2. caveats

    3. creation

    4. definition

    5. done properties

    6. handle async calls

      1. getDataOne function

      2. httpGetAsync function

      3. real-world case

      4. simple case

    7. passing data

    8. yield keyword

  2. getTopTenSubRedditData method

  3. getTopTenSubRedditPosts function

H

  1. Handling async code

  2. Handling errors

SeeError handling
  1. Higher-Order functions

    1. abstraction

      1. definition

      2. definitions of

      3. forEach function

      4. forEachObject function

      5. times function

      6. unless function

    2. data

SeeData types
  1. every function

  2. meaning

  3. some function

  4. sort

SeeSort function
  1. httpGetAsync function

I

  1. Imperative programming

J, K

  1. join implementation

L

  1. Lazy evaluation

  2. logger function

  3. longRunningFnBookKeeper function

  4. longRunningFunction function

M

  1. many function

  2. map

    1. apressBooks object

    2. arrays

    3. arrayUtils object

    4. definition

    5. filter function

    6. forEach function

    7. functor

  3. Mathematical functions

  4. Math.max function

  5. MayBe

    1. getTopTenSubRedditPosts function

    2. handle errors/exception

    3. implementation

    4. map function

    5. real-world use cases

    6. use cases

  6. Memoize function

  7. mergeViaMayBe function

  8. Methods

  9. Monads

    1. See alsoFunctor

    2. chain implementation

    3. definition

    4. getComments implementation

    5. implementation

    6. join implementation

    7. map function

    8. mergeViaJoin

    9. mergeViaMayBe

    10. method

    11. problems

    12. Reddit API endpoint

    13. reddit comments

  10. Multiple statement functions

N

  1. Npm script creation

O

  1. once function

P, Q

  1. Parallel code

  2. Partial application vs. Curry function

  3. Passing data

  4. Pipelines/sequence

    1. composition is associative

    2. left-most function

    3. odds

    4. pipe function

    5. pipelines

    6. right-most function

    7. tap function

  5. Pointed functor

  6. Pure functions

    1. definition

    2. external environment

    3. Math.max function

    4. mathematical function

    5. reasonable code

    6. testable code

R

  1. reduce function

  2. Referential transparency

S

  1. script-compiled.js file

  2. some function

  3. Sort function

    1. compareFunction

    2. in-built function

    3. sortBy function

  4. Strict modes

  5. Synchronous vs. Asynchronous

T

  1. tap function

  2. tellType function

  3. times function

U

  1. unary function

  2. Unix philosophy

  3. Unless function

V, W, X

  1. variadic function

Y

  1. yield keyword

Z

  1. zip function