Authentication

April 9, 2018 ยท View on GitHub

Callbacks vs. Functional River

Here's a rough visualization of our function: image

See both Before and After examples below.


Before

Node-style Callbacks w/ Nesting

Note: This is intentionally reasonable callback code. Even if nested. Not trying a straw-man attack.

callback-mountain-before

After

Functional River Pattern

callback-mountain-after

Back to Main Readme

Contents

  1. 1Callbacks vs. Functional River
  2. 2See both Before and After examples below.
  3. 3Before
  4. 3.1Node-style Callbacks w/ Nesting
  5. 4After
  6. 4.1Functional River Pattern