Tag

pure functions

0 views collected around this technical thread.

FunTester
FunTester
Feb 5, 2024 · Backend Development

How to Write Testable Business Code in Go: From Pure Functions to Dependency Injection

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.

Goclean codedependency injection
0 likes · 16 min read
How to Write Testable Business Code in Go: From Pure Functions to Dependency Injection
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.

Functional ProgrammingJavaScriptMonads
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.

Functional ProgrammingHigher-order Functionsimmutability
0 likes · 11 min read
The Rise and Benefits of Functional Programming in Modern Software Development
政采云技术
政采云技术
Feb 15, 2022 · Fundamentals

Functional Programming in JavaScript: Concepts, Techniques, and Practical Applications

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.

CurryingFunctional ProgrammingHigher-order Functions
0 likes · 18 min read
Functional Programming in JavaScript: Concepts, Techniques, and Practical Applications
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.

Async/AwaitJavaScriptPromise
0 likes · 11 min read
Refactoring Examples for Common Business Scenarios: From Callback Hell to Promise.all and Pure Functions
ByteFE
ByteFE
Sep 6, 2021 · Fundamentals

Functional Programming Fundamentals: Pure Functions, Currying, and Composition

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.

CurryingFunctional ProgrammingImmutable Data
0 likes · 11 min read
Functional Programming Fundamentals: Pure Functions, Currying, and Composition
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.

CurryingFunctional ProgrammingJavaScript
0 likes · 11 min read
Key Concepts of Functional Programming in JavaScript
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.

Functional ProgrammingJavaScriptValidation
0 likes · 20 min read
Pure Functions, Functors, and Applicative Functors with LazyBox in JavaScript
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.

Functional ProgrammingHigher-order FunctionsJavaScript
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.

FilterFunctional ProgrammingHigher-order Functions
0 likes · 22 min read
Functional Programming in JavaScript: Refactoring User List Processing