JavaScript already has most of the tools you need as methods built into the language. The only problem is the dot notation. This is why so many fall back to lodash.
This weird trick extracts all the useful FP methods from various object prototypes and flips them into composable functions.
An excellent glossary. Not a tutorial but a good reference document. If you are coming at this stuff for the first time, read an introduction to functional programming first.
Some of the concepts later in this glossary are harder to remember or express in JavaScript and have to rely on libraries. That’s not ideal but all of these ideas are useful.
If more working programmers worked with higher level abstractions in mind, they would write more testable code with fewer bugs and have a far better understanding of what their code was doing.
My first serious doubts about Tesla didn’t stem from missed schedules, I’ve been guilty of too many of these, they’re part of tech life. What seriously worried me was a July 2016 visit to Tesla’s manufacturing plant in Fremont, California. In taking delivery of my wife’s Model S, we were treated to a group tour of the site. Everyone marveled at the robot porn, at the activity on the assembly line, at the endless stores of spare parts piled to the ceiling.
Everyone but yours truly.
I couldn’t help check off the sins against the “Toyota Bible”, prescriptions for car manufacturers that are lucidly detailed in The Machine That Changed The World (a great and, in parts, sad read). In particular, one mustn’t stockpile parts on the floor, they must be fed in small quantities at small time intervals. If a part has a problem, only a small quantity needs to be shipped back to the supplier who can inspect, correct, and quickly adjust their own production process.
(Ironically, the Fremont plant is prominently featured in “The Machine…” as the locus of the ultimately failed GM-Toyota cooperation.)
As I watched Tesla’s messy, hiccuping line, with workers dashing in to fix faulty parts in place, my mind travelled back to the Honda plant I had visited years ago in Marysville, Ohio. Clean, calm, everything moved smoothly. I was so shocked by the contrast that I imprudently voiced my concern. That didn’t go over well with my fellow Tesla owners. I was a killjoy, I was calling their choice into question.
flow-runtime provides a Babel plugin to transpile Flow type annotations into runtime checks that use flow-runtime package to construct and evaluate assertions.