• Stars
    star
    179
  • Rank 208,078 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Examples with Functional JavaScript, following Professor Frisby's course

functional-examples

Greenkeeper badge

New functional library cpsfy

UPDATE. Check out my new advanced functional library: https://github.com/dmitriz/cpsfy

Examples with Functional JavaScript

Heavily annotated examples from the awesome videos Professor Frisby Introduces Composable Functional JavaScript, see also the discussion on Reddit and on Hacker News.

See also the wonderful e-book Professor Frisby's Mostly Adequate Guide to Functional Programming by the same author (See also https://github.com/MostlyAdequate/mostly-adequate-guide for the updates).

What makes Prof. Frisby's course and book awesome?

Both course and book amazingly manage to avoid suffering from the two widespread diseases when explaining abstract functional concepts:

  • The first disease is to stay with abstract artifically simplified examples that can be easily manipulated directly without the theory, thus failing to illustrate the very benefits of the theory and abstraction. The reader not familiar with real world uses of that abstraction is therefore struggling to appreciate its usefulness.

  • The second disease is to bring complete nontrivial real world examples relying on all technical details involved, including those not relevant to the point of the explanation. The reader not familiar with those technical details can feel distracted if not confused.

Professor Frisby masterfully manages to navigate the reader through convincing real world examples demonstrating real benefits of the functional abstractions with sharp focus and no distraction by unnecessary details.

Running Examples

Install the packages with either of

yarn install
npm install

then enter the examples directory and run the files directly with node

node <file.js>

Related Projects

More Repositories

1

cpsfy

🚀 Tiny goodies for Continuation-Passing-Style functions, fully tested
JavaScript
68
star
2

un

unframework for universal uncomponents - use your uncomponents with no boundaries
JavaScript
30
star
3

tiny-cps

Tiny goodies for Continuation-Passing-Style functions (OLDER VERSION), use instead the NEWER `cpsfy`
JavaScript
16
star
4

gulp-automation

Automating Live Reload, see also the Minimal Server setup: https://github.com/dmitriz/min-server
HTML
9
star
5

min-karma

Minimal Karma Runner Setup and Package in one --- Start testing now!
JavaScript
7
star
6

monadic-libraries-examples

Usage examples with tests of various Monadic libraries
JavaScript
4
star
7

gently-copy

Colorfully and informatively copy files without overwriting
JavaScript
3
star
8

webpack-wish-list

My Webpack Wish List
2
star
9

hyperscript-strict

Strict API for Hyperscript Libraries
JavaScript
2
star
10

design-maths

Layout mathematics for Web Design
2
star
11

better-math

Math operations more reliable and predictable
JavaScript
2
star
12

min-server

Minimal Server setup with Live Reload and Package in one -- never again manually reload your browser!
JavaScript
1
star
13

git-collaboration-strategies

Simplest and most effective Git strategies I know
1
star
14

complex-analysis-courses

Discussion Board and File Repository for my Complex Analysis courses
1
star
15

promises-vs-callbacks

JS promise is not a replacement for callbacks
1
star
16

git-cheat-sheet

In the ideal world this repository should not exist
1
star
17

fork-testing

Testing forks, pull requests, etc
1
star
18

example-dress-ahead

This example is made up of two separate applications. These applications work together to allow customers to select clothes online and try them on in the store.
JavaScript
1
star
19

mock-trading-api

Pure functions mocking trading APIs for testing
JavaScript
1
star
20

universal-components

Write UI components that work with any framework or any (virtual) dom library
1
star
21

maths-libraries-tests

Tests to ensure Mathematics libraries run as expected
JavaScript
1
star