Tag

functor

1 views collected around this technical thread.

Taobao Frontend Technology
Taobao Frontend Technology
Oct 14, 2021 · Fundamentals

Why Front‑End Developers Must Master Functional Programming Concepts

This article traces the history of functional programming, explains why its pure‑function mindset is essential for modern front‑end development with React Hooks, and demonstrates practical patterns such as functors, monads, partial application, and memoization using concise JavaScript examples.

HooksJavaScriptReact
0 likes · 19 min read
Why Front‑End Developers Must Master Functional Programming Concepts
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Jan 19, 2021 · Fundamentals

Understanding Functor, Applicative, and Monad in JavaScript with Practical Examples

The article explains JavaScript’s Functor, Applicative, and Monad abstractions—showing how map, ap, and chain (flatMap) on Box types such as Either, LazyBox, and a lazy Task can replace nested try‑catch and null checks, enable composable synchronous and asynchronous code, and support parallel execution with Task.ap.

ApplicativeAsyncJavaScript
0 likes · 20 min read
Understanding Functor, Applicative, and Monad in JavaScript with Practical Examples
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Nov 6, 2020 · Fundamentals

Pure Functions, Functors, and Applicative Functors with LazyBox in JavaScript

The article introduces pure functions and shows how JavaScript functors like Box can lazily transform values with map, uses LazyBox to defer side effects until fold, then extends the concept to applicative functors and Either for composable validation via ap and liftA2 helpers.

JavaScriptapplicative functorfunctional programming
0 likes · 20 min read
Pure Functions, Functors, and Applicative Functors with LazyBox in JavaScript