Lei Huang

Lei Huang

Lei is a JavaScript developer from China. He's unapologetic in his love for functional programming. You can find more about him here.

How to Write Recursion Like A Pro

June 16, 2018 • ☕️ 6 min read

I translated some recursion functions from Haskell to JavaScript and Python.

Asynchronous Patterns in JavaScript Part 2

June 15, 2018 • ☕️☕️ 9 min read

I examined Generators, Iterators, Observables and CSP in the context of async control flow.

Asynchronous Patterns in JavaScript Part 1

June 14, 2018 • ☕️☕️ 9 min read

I explained callbacks, thunks and promises.

Understanding Blockchain By Writing One With JavaScript

January 06, 2018 • ☕️ 5 min read

I created a blockchain and a crypto currency using a toy language called JavaScript.

Turbo Charge MongoDB Query Speed With Redis

November 08, 2017 • ☕️ 5 min read

Implementing Redis in NodeJS is trickier than I thought.

Understanding NodeJS Event Loop

November 03, 2017 • ☕️ 2 min read

I wrote this article mainly to impress potential employers.

Server Side Rendering With React Part 3

September 06, 2017 • ☕️ 6 min read

The struggle still continues ...

Server Side Rendering With React Part 2

September 05, 2017 • ☕️ 2 min read

The struggle continues...

Server Side Rendering With React Part 1

September 04, 2017 • ☕️ 7 min read

How I struggled without the help of Next.js