Tagged articles
20 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Nov 11, 2025 · Fundamentals

How to Classify C Functions for Cleaner Code and Better Optimization

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.

C programmingPure Functionsfunction classification
0 likes · 5 min read
How to Classify C Functions for Cleaner Code and Better Optimization
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 6, 2025 · Fundamentals

Why Long Functions Hurt Maintainability and How to Refactor Them into Pure Units

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
Why Long Functions Hurt Maintainability and How to Refactor Them into Pure Units
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 10, 2022 · Frontend Development

Pure Functions in JavaScript: Concepts, Benefits, and Practical Examples

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.

Code RefactoringJavaScriptMonads
0 likes · 15 min read
Pure Functions in JavaScript: Concepts, Benefits, and Practical Examples
IT Services Circle
IT Services Circle
Aug 13, 2022 · Fundamentals

The Rise and Benefits of Functional Programming in Modern Software Development

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.

Higher-Order FunctionsProgramming ParadigmsPure Functions
0 likes · 11 min read
The Rise and Benefits of Functional Programming in Modern Software Development
Selected Java Interview Questions
Selected Java Interview Questions
Nov 25, 2021 · Frontend Development

Refactoring Examples for Common Business Scenarios: From Callback Hell to Promise.all and Pure Functions

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.

JavaScriptPromisePure Functions
0 likes · 11 min read
Refactoring Examples for Common Business Scenarios: From Callback Hell to Promise.all and Pure Functions
Alibaba Terminal Technology
Alibaba Terminal Technology
Sep 1, 2021 · Frontend Development

Why Front‑End Developers Must Master Functional Programming and React Hooks

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
Why Front‑End Developers Must Master Functional Programming and React Hooks
ByteFE
ByteFE
Jul 5, 2021 · Fundamentals

Key Concepts of Functional Programming in JavaScript

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.

CurryingPure Functionscomposition
0 likes · 11 min read
Key Concepts of Functional Programming in JavaScript
ELab Team
ELab Team
Jun 16, 2021 · Fundamentals

Why Functional Programming Matters for Front‑End Developers and How to Use It

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.

Higher-Order FunctionsJavaScriptMonads
0 likes · 19 min read
Why Functional Programming Matters for Front‑End Developers and How to Use It
vivo Internet Technology
vivo Internet Technology
Sep 18, 2019 · Fundamentals

Functional Programming in JavaScript: Theory, History, and Key Concepts

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.

Higher-Order FunctionsPure Functionsimmutability
0 likes · 24 min read
Functional Programming in JavaScript: Theory, History, and Key Concepts
NetEase Game Operations Platform
NetEase Game Operations Platform
Apr 27, 2019 · Frontend Development

Functional Programming in JavaScript: Refactoring User List Processing

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.

Higher-Order FunctionsMAPPure Functions
0 likes · 22 min read
Functional Programming in JavaScript: Refactoring User List Processing
Node Underground
Node Underground
Nov 8, 2018 · Frontend Development

Why Pure Functions Matter in JavaScript: Benefits, Examples, and Best Practices

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
Why Pure Functions Matter in JavaScript: Benefits, Examples, and Best Practices
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 1, 2017 · Frontend Development

Why Functional Programming Is Revolutionizing Front-End Development

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
Why Functional Programming Is Revolutionizing Front-End Development
Node Underground
Node Underground
Oct 18, 2016 · Frontend Development

Master Functional Programming in JavaScript: Pure Functions, Currying, and More

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
Master Functional Programming in JavaScript: Pure Functions, Currying, and More
WeChatFE
WeChatFE
Oct 9, 2016 · Frontend Development

Mastering JavaScript Function Composition: From Simple to Multi-Function Compose

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
Mastering JavaScript Function Composition: From Simple to Multi-Function Compose