Skip to content

Instantly share code, notes, and snippets.

View typesafedev's full-sized avatar
🏠
Functionally efficient

Andy Lam typesafedev

🏠
Functionally efficient
  • UK
View GitHub Profile
@typesafedev
typesafedev / fp-lingo.md
Created July 2, 2020 14:52 — forked from ericelliott/fp-lingo.md
A Guide to Functional Programming Lingo for JavaScripters

A Guide to Functional Programming Lingo for JavaScripters

Functional programming gets a bad wrap about being too hard for mere mortals to comprehend. This is nonsense. The concepts are actually quite simple to grasp.

The jargon is the hardest part. A lot of that vocabulary comes from a specialized field of mathematical study called category theory (with a liberal sprinkling of type theory and abstract algebra). This sounds a lot scarier than it is. You can do this!

All examples using ES6 syntax. wrap (foo) => bar means:

function wrap (foo) {
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 17 columns, instead of 9 in line 4.
id,name,owner_login,owner_id,owner_type,html_url,description,fork,created_at,updated_at,pushed_at,size,stargazers_count,language,forks_count,open_issues_count,score
943149,d3,mbostock,230541,User,https://github.com/mbostock/d3,A JavaScript visualization library for HTML and SVG.,FALSE,2010-09-27T17:22:42Z,2015-03-24T12:36:05Z,2015-03-20T19:01:30Z,72805,35863,JavaScript,9047,229,34.62675
2400938,fnordmetric,paulasmuth,564023,User,https://github.com/paulasmuth/fnordmetric,FnordMetric allows you collect and visualize timeseries data with SQL.,FALSE,2011-09-16T17:58:37Z,2015-03-24T05:48:15Z,2015-03-24T12:23:03Z,18137,4525,C++,362,89,9.765476
11010098,epoch,fastly,777070,Organization,https://github.com/fastly/epoch,"A general purpose, real-time visualization library.",FALSE,2013-06-27T23:04:32Z,2015-03-24T11:30:39Z,2015-03-08T03:44:15Z,3504,3911,HTML,186,45,24.238726
3859306,cubism,square,82592,Organization,https://github.com/square/cubism,Cubism.js: A JavaScript library for time series visualization.,FALSE,2012-0