Tagged articles
9 articles
Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 2, 2025 · Backend Development

Mastering flatMap in Java: Real-World Spring Boot 3 Examples

This article explains the powerful flatMap operator in Java streams, covering basic usage, Optional handling, replacing nested loops, API response flattening, combining with filter, reactive programming, and a comprehensive end‑to‑end example, all illustrated with Spring Boot 3 code snippets.

Spring BootStreamsflatMap
0 likes · 11 min read
Mastering flatMap in Java: Real-World Spring Boot 3 Examples
JavaScript
JavaScript
Apr 26, 2025 · Frontend Development

Master JavaScript flatMap: Simplify Array Transformations and Boost Performance

The article explains JavaScript’s flatMap() method, detailing its combination of map() and flat() functionality, syntax, parameters, use‑cases such as flattening nested arrays, filtering and transforming elements, handling one‑to‑many relationships, performance benefits, caveats, and real‑world examples with code snippets.

JavaScriptarray methodsdata-processing
0 likes · 4 min read
Master JavaScript flatMap: Simplify Array Transformations and Boost Performance
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
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.

Stream APIflatMapfunctional programming
0 likes · 10 min read
Advanced Java Stream APIs: Reduce, Match, FlatMap and Performance Tips
JavaScript
JavaScript
Apr 15, 2022 · Frontend Development

How to Skip Elements in JavaScript Arrays Using flatMap

This article explains how JavaScript's map, filter, and especially flatMap methods can be used to transform arrays while selectively skipping or removing elements, offering concise code examples that demonstrate replacing separate map‑filter chains with a single flatMap call for cleaner, more efficient array processing.

ArrayMAPfilter
0 likes · 3 min read
How to Skip Elements in JavaScript Arrays Using flatMap
Programmer DD
Programmer DD
Nov 30, 2019 · Backend Development

Master Java 8 Stream: When to Use map vs flatMap

This tutorial explains how Java 8's Stream API's map and flatMap operations work, showing practical examples of extracting student ages from collections and demonstrating why flatMap is needed to flatten nested lists, with clear code snippets and diagrams.

BackendJava 8MAP
0 likes · 4 min read
Master Java 8 Stream: When to Use map vs flatMap
Liulishuo Tech Team
Liulishuo Tech Team
Apr 11, 2018 · Mobile Development

Understanding map, flatMap, and compactMap in Swift

This article explains the differences between map, flatMap, and compactMap in Swift, covering the three overloads of flatMap, their behavior with sequences and optionals, the rationale behind renaming one overload to compactMap, and when to prefer optional chaining versus optional mapping.

MAPSwiftcompactMap
0 likes · 8 min read
Understanding map, flatMap, and compactMap in Swift