Tagged articles
Pure Functions
20 articles · Page 1 of 1
This article explains three practical categories for C functions—pure functions with no side effects, functions that read external state without modifying it, and functions that both read and depend on external variables—showing how the classification aids memoization, re‑entrancy reasoning, and inline‑function usage.
Pure Functionsc-programmingfunction classification
0 likes · 5 min read

Long functions exceeding about 20 lines often hide multiple responsibilities, increase cognitive load, impede testing, and introduce hidden side effects; this article explains the problems, illustrates them with real JavaScript examples, and demonstrates a functional‑programming‑inspired refactor that splits logic into small, pure, testable functions.
Pure Functionscode qualityrefactoring
0 likes · 12 min read

This article explains the benefits of functional programming in Go, outlines four core concepts, presents practical rules, and demonstrates five concrete examples—including pure functions, immutability, higher‑order functions, currying, and recursion—to help developers write clearer, more testable code.
CurryingGoPure Functions
0 likes · 9 min read


DevOpsMar 7, 2024 · Backend Development
This article explains why unit testing is often seen as burdensome, then provides practical Go techniques—using pure functions, extracting dependencies, object‑oriented design, function variableization, and avoiding init—to write business code that is easy to test and maintain.
GoMockingPure Functions
0 likes · 17 min read

This article explains why unit testing is often seen as burdensome in long‑running Go projects and provides practical techniques—such as using pure functions, extracting dependencies, object‑oriented design, and function variableization—to make business code easy to test and maintain.
Clean CodeGoPure Functions
0 likes · 16 min read

This article explains the definition of pure functions in JavaScript, illustrates their input‑output behavior, side‑effects, composition, point‑free style, and monadic encapsulation, and demonstrates how writing pure functions improves readability, testability, and refactoring with concrete code examples.
JavaScriptMonadsPure Functions
0 likes · 15 min read

Functional programming, once a niche paradigm, is rapidly entering mainstream software development as teams adopt pure functions, immutability, and higher‑order functions to reduce bugs, improve modularity, and manage the growing complexity of large codebases across many languages and frameworks.
Programming ParadigmsPure Functionsfunctional programming
0 likes · 11 min read


政采云技术Feb 15, 2022 · Fundamentals
This article introduces functional programming as a programming paradigm, explains its core concepts such as pure functions, higher‑order functions, closures, currying, and functors, and demonstrates how these ideas are applied in modern JavaScript frameworks and libraries with clear code examples.
CurryingJavaScriptPure Functions
0 likes · 18 min read

This article demonstrates how to refactor tangled asynchronous request chains and complex if‑else logic in JavaScript by replacing callback hell with Promise.all and async/await, extracting pure helper functions, and applying best‑practice principles to improve readability, testability, and maintainability.
Async/AwaitJavaScriptPromise
0 likes · 11 min read


ByteFESep 6, 2021 · Fundamentals
This article introduces functional programming concepts including pure functions, currying, function composition, and declarative vs imperative code, with practical JavaScript examples and a Flickr API demo application.
CurryingImmutable DataJavaScript
0 likes · 11 min read

This article explores the history and resurgence of functional programming, explains why it is essential for modern front‑end development, demonstrates class and function components in React, introduces hooks, functors, monads, partial application, memoization, and provides practical code examples for building robust, side‑effect‑free UI logic.
JavaScriptMonadPure Functions
0 likes · 19 min read


ByteFEJul 5, 2021 · Fundamentals
This article explains core functional programming concepts in JavaScript—including pure functions, side effects, currying, composition, and pointfree style—detailing their definitions, advantages, practical code examples, and how they improve code clarity, testability, and reusability.
CompositionCurryingPure Functions
0 likes · 11 min read

This article explains functional programming as a paradigm focused on pure functions and data‑to‑data mapping, contrasts it with imperative programming, introduces lambda calculus, pure functions, higher‑order functions, functors, monads, and provides JavaScript examples that show how to write composable, side‑effect‑free code for front‑end development.
JavaScriptMonadsPure Functions
0 likes · 19 min read

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.
JavaScriptPure Functionsapplicative functor
0 likes · 20 min read

The article surveys functional programming’s origins, from Hilbert and Church to lambda calculus, explains its pure‑computation model versus imperative state mutation, outlines essential concepts such as currying, higher‑order functions, and immutability, discusses JavaScript‑specific practices and limitations, and notes the growing impact of functional ideas in modern front‑end frameworks.
Pure Functionshigher-order functionsimmutability
0 likes · 24 min read

This article demonstrates how to apply functional programming concepts in JavaScript by refactoring an example that reads user data from an API, filters active SREs, and formats output, illustrating the benefits of pure functions, higher‑order utilities like map, filter, reduce, and improved code readability and maintainability.
Pure Functionsfilterfunctional programming
0 likes · 22 min read

Pure functions are deterministic, side‑effect‑free routines that always return the same output for identical inputs, and this article explains their definition, observable side effects, practical JavaScript examples of pure and impure functions, and why they improve testability, refactoring, and code quality in modern front‑end development.
Pure Functionscode qualityfunctional programming
0 likes · 6 min read

This article explains the fundamentals of functional programming, its contrast with imperative coding, the role of pure functions and monads, and why its declarative and asynchronous features are increasingly essential for modern front‑end frameworks and reactive UI development.
JavaScriptPure FunctionsReactive Programming
0 likes · 10 min read

Discover the core concepts of functional programming for JavaScript developers—including pure functions, function composition, currying, monads, functors, immutability, lazy evaluation, and Clojure-inspired patterns—through a concise, practical guide that bridges theory and real-world application.
CurryingMonadsPure Functions
0 likes · 2 min read


WeChatFEOct 9, 2016 · Frontend Development
This article explains how to build and use compose functions in JavaScript—including two‑argument, variadic, and prototype‑based versions—demonstrates practical examples, and highlights the benefits of pure functions and functional composition for modular, testable frontend code.
CurryingJavaScriptPure Functions
0 likes · 5 min read
