Tagged articles
38 articles
Page 1 of 1
JavaScript
JavaScript
Apr 20, 2025 · Frontend Development

Replace Nested Loops with Elegant JavaScript Array Methods

This article explains how to replace verbose nested for‑loops in JavaScript with functional array methods like flat, map, filter, flatMap, and reduce, improving code readability, maintainability, and often performance for handling multi‑dimensional arrays.

FlatJavaScriptarray methods
0 likes · 4 min read
Replace Nested Loops with Elegant JavaScript Array Methods
php Courses
php Courses
Apr 3, 2025 · Fundamentals

Understanding Higher-Order Functions in Python

This article explains Python's higher-order functions, covering their definition, how they can accept or return other functions, built-in examples like map, filter, reduce, and demonstrates custom higher-order functions, closures, and decorators with practical code snippets.

MAPPythonclosures
0 likes · 6 min read
Understanding Higher-Order Functions in Python
Python Crawling & Data Mining
Python Crawling & Data Mining
Mar 10, 2025 · Fundamentals

Three Clever Ways to Sum Columns in a 2D Python List

This article demonstrates three efficient Python techniques—list unpacking, NumPy aggregation, and functional reduction—to sum corresponding elements across sub‑lists in a two‑dimensional list, complete with code examples and visual explanations for beginners and seasoned developers alike.

data-processinglist-sumlist-unpacking
0 likes · 5 min read
Three Clever Ways to Sum Columns in a 2D Python List
JavaScript
JavaScript
Feb 26, 2025 · Frontend Development

Master JavaScript Array Methods: From map to flatMap

This guide explains how JavaScript’s built‑in array methods—such as map, filter, reduce, forEach, find, some, every, includes, flat, flatMap, findIndex, and slice—can replace nested loops, improve readability, and enable powerful method chaining for concise, efficient data manipulation.

JavaScriptMAParray methods
0 likes · 7 min read
Master JavaScript Array Methods: From map to flatMap
Python Crawling & Data Mining
Python Crawling & Data Mining
Jan 24, 2025 · Fundamentals

Three Elegant Python Tricks to Sum Columns in a 2D List

This article explains a Python fan's question about summing each column of a two‑dimensional list and presents three concise solutions—including list unpacking with zip, NumPy aggregation, and a functional reduce approach—complete with code snippets and explanations.

Pythonlist sumlist-comprehension
0 likes · 5 min read
Three Elegant Python Tricks to Sum Columns in a 2D List
JavaScript
JavaScript
Dec 25, 2024 · Frontend Development

7 Essential JavaScript Array Methods Every Developer Should Master

This guide explores seven powerful JavaScript array methods—map, filter, reduce, forEach, find, some, and every—detailing their syntax, practical examples, performance tips, and how to combine them for efficient data manipulation in modern web development.

JavaScriptMAParray methods
0 likes · 9 min read
7 Essential JavaScript Array Methods Every Developer Should Master
FunTester
FunTester
Sep 5, 2024 · Backend Development

Practical Java Streams Techniques: Filtering, Mapping, Reducing, and Grouping

This article introduces five practical Java Streams techniques—including precise filtering, map transformation, aggregation with reduce, and advanced grouping—to help developers write clearer, more efficient backend code, complete with code examples and explanations of each operation.

JavaMAPStreams
0 likes · 8 min read
Practical Java Streams Techniques: Filtering, Mapping, Reducing, and Grouping
Test Development Learning Exchange
Test Development Learning Exchange
Aug 27, 2024 · Fundamentals

Introduction to Higher-Order Functions in Python

This article introduces Python's higher-order functions—including map, filter, reduce, partial, lambda, and related modules such as itertools, functools, contextlib, concurrent.futures, and decorator—explaining their concepts and demonstrating practical code examples for simplifying API testing and automation.

MAPPythonfilter
0 likes · 8 min read
Introduction to Higher-Order Functions in Python
Test Development Learning Exchange
Test Development Learning Exchange
Nov 20, 2023 · Fundamentals

Higher-Order Functions and Function Composition in Python with 10 Practical Examples

This article explains the core concepts of higher-order functions and function composition in functional programming, defines them, and provides ten practical Python code examples illustrating usage as parameters, return values, composition, and common utilities such as map, filter, reduce, list comprehensions, and functools.partial.

Higher-Order FunctionsMAPPython
0 likes · 4 min read
Higher-Order Functions and Function Composition in Python with 10 Practical Examples
Code Ape Tech Column
Code Ape Tech Column
Jun 21, 2023 · Big Data

From Java Streams to Spark: Basic Big Data Operations Explained

This article demonstrates how developers familiar with Java Stream APIs can quickly grasp fundamental Spark operations—including map, flatMap, groupBy, and reduce—by translating stream examples into Spark code, providing complete code snippets, explanations of transformations versus actions, and practical tips for handling exceptions in distributed processing.

Big DataJava StreamMAP
0 likes · 24 min read
From Java Streams to Spark: Basic Big Data Operations Explained
Yunxuetang Frontend Team
Yunxuetang Frontend Team
Jun 2, 2023 · Frontend Development

Top Frontend Insights: AI Naming, PDF Chat, Performance Boosts & Hidden JS APIs

This roundup highlights cutting‑edge topics ranging from why AI models are named after alpacas and how to converse with PDFs, to practical front‑end performance gains, an in‑depth webpack resolve walkthrough, ten powerful reduce techniques, and five obscure JavaScript native APIs, plus a brief intro to a leading front‑end team.

APIJavaScriptfrontend
0 likes · 3 min read
Top Frontend Insights: AI Naming, PDF Chat, Performance Boosts & Hidden JS APIs
DaTaobao Tech
DaTaobao Tech
Sep 22, 2022 · Backend Development

Advanced Java Stream APIs: Reduce, Match, FlatMap and Performance Tips

The article explores lesser‑used Java Stream APIs—reduce, the matching trio (allMatch, anyMatch, noneMatch) and flatMap—showing practical examples, performance impacts of operation ordering, readability trade‑offs, and when to prefer streams or traditional loops, even mentioning parallelStream considerations.

JavaStream APIflatMap
0 likes · 10 min read
Advanced Java Stream APIs: Reduce, Match, FlatMap and Performance Tips
Python Programming Learning Circle
Python Programming Learning Circle
May 20, 2022 · Fundamentals

Introduction to Functional Programming in Python

This article introduces Python's functional programming features, covering first‑class functions, callable objects, storing functions in data structures, higher‑order functions, nested functions, lambda expressions, and the use of map, filter, and reduce with clear code examples.

First-Class FunctionsHigher-Order FunctionsLambda
0 likes · 9 min read
Introduction to Functional Programming in Python
Python Programming Learning Circle
Python Programming Learning Circle
Oct 9, 2021 · Fundamentals

Introduction to Functional Programming in Python

This article provides a beginner-friendly overview of functional programming concepts in Python, covering first‑class functions, callable objects, higher‑order functions, lambda expressions, and the use of map, filter, and reduce with illustrative code examples.

First-Class FunctionsHigher-Order FunctionsLambda
0 likes · 10 min read
Introduction to Functional Programming in Python
ByteFE
ByteFE
Mar 17, 2021 · Frontend Development

A Comprehensive Guide to JavaScript's Array reduce Method and Its Versatile Applications

This article explains the syntax and behavior of JavaScript's reduce method, compares it with map, forEach, filter and find, and demonstrates numerous practical patterns such as flattening arrays, counting occurrences, grouping by property, deduplication, and finding extrema, all illustrated with clear code examples.

ArrayCode ExamplesJavaScript
0 likes · 10 min read
A Comprehensive Guide to JavaScript's Array reduce Method and Its Versatile Applications
Programmer DD
Programmer DD
Jun 5, 2020 · Backend Development

How to Sum BigDecimal Values with Java Stream API and Reduce

This tutorial explains how to use Java's Stream API to sum numeric collections, demonstrates summing IntStream and DoubleStream values, and shows how to apply the reduce method to calculate sums for BigDecimal streams when a dedicated BigDecimalStream is unavailable.

BigDecimalJavaStream API
0 likes · 4 min read
How to Sum BigDecimal Values with Java Stream API and Reduce
Python Programming Learning Circle
Python Programming Learning Circle
May 12, 2020 · Fundamentals

Understanding Functional Programming in Python: Map, Filter, Reduce, Lambda, and Partial Application

This article introduces the functional programming paradigm, contrasts it with imperative programming, and demonstrates core Python functional tools such as map, filter, reduce, lambda expressions, and partial application, including code examples and explanations of side‑effects and higher‑order functions.

MAPfilterpartial application
0 likes · 9 min read
Understanding Functional Programming in Python: Map, Filter, Reduce, Lambda, and Partial Application
AutoHome Frontend
AutoHome Frontend
Jun 24, 2019 · Frontend Development

Unlock the Power of JavaScript’s reduce: 5 Creative Uses Beyond Simple Summing

This tutorial explores why the .reduce() method feels intimidating, demonstrates its basic usage with addition and multiplication, and then showcases five unconventional applications—including converting arrays to objects, flattening nested arrays, performing dual calculations in a single pass, merging map and filter, and sequencing asynchronous calls—while providing clear code examples and performance considerations.

JavaScriptWeb Developmentarray methods
0 likes · 14 min read
Unlock the Power of JavaScript’s reduce: 5 Creative Uses Beyond Simple Summing
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
UC Tech Team
UC Tech Team
Nov 13, 2018 · Fundamentals

Understanding Higher-Order Functions in JavaScript

This article explains what higher‑order functions are, why JavaScript supports functional programming, demonstrates built‑in methods like map, filter and reduce with code examples, and shows how to create your own higher‑order function for clearer, more concise code.

Higher-Order FunctionsJavaScriptMAP
0 likes · 8 min read
Understanding Higher-Order Functions in JavaScript
MaGe Linux Operations
MaGe Linux Operations
Jun 1, 2018 · Fundamentals

Master Python Functions: Definitions, Calls, Parameters, and Advanced Techniques

This article provides a comprehensive guide to Python functions, covering their definition syntax, calling conventions, parameter handling (including default, *args, **kwargs), return values, variable scope, anonymous lambda functions, and higher‑order utilities such as map, reduce, filter, and sorted, with clear code examples.

Higher-Order FunctionsLambdaMAP
0 likes · 10 min read
Master Python Functions: Definitions, Calls, Parameters, and Advanced Techniques
Aotu Lab
Aotu Lab
Apr 29, 2016 · Frontend Development

Mastering JavaScript’s reduce(): From Basics to Advanced Use Cases

This article explains the ES5 Array.prototype.reduce() method, compares it with forEach and map, details its syntax and parameters, provides step‑by‑step code examples—including handling of initial values and object arrays—and notes browser compatibility and library alternatives.

ArrayJavaScriptMAP
0 likes · 7 min read
Mastering JavaScript’s reduce(): From Basics to Advanced Use Cases