Tag

map

1 views collected around this technical thread.

AndroidPub
AndroidPub
Jun 13, 2025 · Fundamentals

Simplify Kotlin Collections Creation with buildList, buildSet, and buildMap

This article explains how Kotlin's standard library provides concise builder functions such as buildList, buildSet, buildMap, and buildString to create immutable collections and strings efficiently, reducing boilerplate and eliminating lambda overhead while offering specialized variants for primitive types.

Kotlinbuilder-functionscollections
0 likes · 7 min read
Simplify Kotlin Collections Creation with buildList, buildSet, and buildMap
Test Development Learning Exchange
Test Development Learning Exchange
Jun 5, 2025 · Fundamentals

Master Python Higher-Order Functions: Real-World Examples & Tips

Learn what higher-order functions are in Python, how they can accept or return other functions, explore built-in examples like map, filter, sorted, reduce, and see custom implementations and lambda integrations through clear code snippets and practical usage tips.

FilterFunctional ProgrammingHigher-order Functions
0 likes · 5 min read
Master Python Higher-Order Functions: Real-World Examples & Tips
Top Architecture Tech Stack
Top Architecture Tech Stack
May 14, 2025 · Backend Development

Injecting List, Array, Set, and Map from Spring Configuration Files Using @Value and EL Expressions

This article explains how to store and inject collection types such as List, array, Set, and Map in Spring configuration files, demonstrates the pitfalls of using @Value directly, and provides practical solutions using @ConfigurationProperties, EL split functions, and custom decoders for flexible and safe property binding.

BackendConfigurationEL Expression
0 likes · 7 min read
Injecting List, Array, Set, and Map from Spring Configuration Files Using @Value and EL Expressions
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.

ClosuresDecoratorsFilter
0 likes · 6 min read
Understanding Higher-Order Functions in Python
Java Tech Enthusiast
Java Tech Enthusiast
Mar 4, 2025 · Fundamentals

Java 8 Map API Enhancements

Java 8 enriches the Map interface with default methods such as getOrDefault, forEach, merge, putIfAbsent, compute, computeIfAbsent, computeIfPresent and replace, allowing developers to retrieve values with fallbacks, iterate entries, combine or conditionally update entries, and thus write more concise, readable code with far less boilerplate.

APIJDK8Java
0 likes · 9 min read
Java 8 Map API Enhancements
Architecture Digest
Architecture Digest
Feb 14, 2025 · Backend Development

Optimizing Nested Loops in Java: Using Break and Map for Faster Data Matching

This article demonstrates how to improve the performance of nested for‑loops that match user IDs between two large lists by adding a break statement and by converting the inner list into a hash map, reducing execution time from tens of seconds to a few seconds.

JavaNested Loopsdata structures
0 likes · 7 min read
Optimizing Nested Loops in Java: Using Break and Map for Faster Data Matching
Go Programming World
Go Programming World
Feb 11, 2025 · Backend Development

Deep Dive into Go's sync.Map: Implementation, Usage, and Performance

An in‑depth exploration of Go’s sync.Map reveals its concurrent map implementation, covering core structures, read‑only and dirty maps, entry states, and detailed walkthroughs of Store, Load, Delete, Range, Clear, and advanced operations like LoadOrStore, CompareAndSwap, and CompareAndDelete with code examples.

BackendGoconcurrency
0 likes · 30 min read
Deep Dive into Go's sync.Map: Implementation, Usage, and Performance
Java Tech Enthusiast
Java Tech Enthusiast
Feb 1, 2025 · Backend Development

Optimizing Nested Loops in Java with Map and Break

To avoid the O(n × m) cost of naïve nested loops when matching IDs, replace the inner scan with a break after a unique match or, far more efficiently, build a HashMap of the secondary list so each lookup becomes O(1), dropping overall complexity to O(n + m) and cutting execution time from tens of seconds to a few hundred milliseconds.

HashMapJavaPerformance
0 likes · 8 min read
Optimizing Nested Loops in Java with Map and Break
Test Development Learning Exchange
Test Development Learning Exchange
Jan 22, 2025 · Fundamentals

Common Python Built-in Functions: len, sum, max/min, sorted, enumerate, zip, map, filter

This article introduces essential Python built-in functions such as len, sum, max/min, sorted, enumerate, zip, map, and filter, explaining their syntax, providing practical examples, and offering best‑practice tips for effective use in everyday programming.

Filterbuilt-in functionsenumerate
0 likes · 7 min read
Common Python Built-in Functions: len, sum, max/min, sorted, enumerate, zip, map, filter
Top Architect
Top Architect
Dec 20, 2024 · Backend Development

Optimizing Nested Loops in Java Using Map for Faster ID Matching

This article demonstrates how to replace inefficient nested for‑loops that match user IDs between two large lists with a map‑based lookup, showing code examples, performance measurements, and the impact of using break statements and O(1) hash map access to dramatically reduce execution time.

BackendJavamap
0 likes · 9 min read
Optimizing Nested Loops in Java Using Map for Faster ID Matching
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 19, 2024 · Fundamentals

Mastering Java Map: 12 Powerful Methods Every Developer Should Know

This article introduces Java's Map interface, explains the expanded API added since Java 8, and provides practical code examples for methods such as getOrDefault, forEach, replaceAll, computeIfAbsent, merge, and the immutable factories introduced in Java 9, helping developers deepen their collection framework knowledge.

BackendJavaJava8
0 likes · 10 min read
Mastering Java Map: 12 Powerful Methods Every Developer Should Know
macrozheng
macrozheng
Nov 14, 2024 · Backend Development

Master Java’s New Map Methods: getOrDefault, forEach, merge & More

Learn how Java 8 introduced powerful Map methods such as getOrDefault, forEach, merge, putIfAbsent, compute, computeIfAbsent, computeIfPresent, and replace, with clear code examples that show how they simplify common tasks like default value handling, iteration, merging entries, and conditional updates.

Code TutorialJDK8Java
0 likes · 10 min read
Master Java’s New Map Methods: getOrDefault, forEach, merge & More
Architecture Digest
Architecture Digest
Oct 31, 2024 · Backend Development

Java 8 Map New Methods: getOrDefault, forEach, merge, putIfAbsent, compute, computeIfAbsent, computeIfPresent, replace

This article introduces the Java 8 Map API enhancements—including getOrDefault, forEach, merge, putIfAbsent, compute, computeIfAbsent, computeIfPresent, and replace—explaining their purpose, showing concise code examples, and demonstrating how they simplify common map‑handling scenarios.

BackendJDK8Java
0 likes · 9 min read
Java 8 Map New Methods: getOrDefault, forEach, merge, putIfAbsent, compute, computeIfAbsent, computeIfPresent, replace
Code Mala Tang
Code Mala Tang
Oct 4, 2024 · Frontend Development

Which JavaScript Loop Is Fastest? Benchmark Results Revealed

This article benchmarks various JavaScript looping constructs—including for, while, do‑while, for‑of, forEach, map, filter, reduce, some, every, and find—by moving 50 million items between arrays and measuring execution time to determine the fastest approaches.

BenchmarkJavaScriptfor loop
0 likes · 8 min read
Which JavaScript Loop Is Fastest? Benchmark Results Revealed
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.

BackendFilterJava
0 likes · 8 min read
Practical Java Streams Techniques: Filtering, Mapping, Reducing, and Grouping
Python Programming Learning Circle
Python Programming Learning Circle
Sep 3, 2024 · Fundamentals

Simplifying Python Parallelism with map and ThreadPool

This article explains why traditional Python multithreading tutorials are often overly complex, introduces the concise map‑based approach using multiprocessing and multiprocessing.dummy ThreadPool, demonstrates performance gains with real‑world examples, and provides ready‑to‑run code snippets for efficient parallel execution.

MultiprocessingParallelismmap
0 likes · 10 min read
Simplifying Python Parallelism with map and ThreadPool
Test Development Learning Exchange
Test Development Learning Exchange
Aug 31, 2024 · Fundamentals

Understanding Python’s map() Function: Syntax, Basic and Advanced Usage with Examples

This article explains Python's built‑in map() function, covering its syntax, basic usage with lambda and regular functions, and advanced scenarios such as handling multiple iterables, dictionaries, strings, conditional filtering, zip, nested lists, and compares it with list comprehensions, providing clear code examples throughout.

Code ExamplesFunctional ProgrammingTutorial
0 likes · 6 min read
Understanding Python’s map() Function: Syntax, Basic and Advanced Usage with Examples
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.

API testingFilterFunctional Programming
0 likes · 8 min read
Introduction to Higher-Order Functions in Python
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 1, 2024 · Frontend Development

Implementing Trajectory Playback in Leaflet with Leaflet.TrackPlayer and Vue 3

This tutorial demonstrates how to set up a Vue 3 project, install the Leaflet.TrackPlayer plugin, define a simulated path, create a custom moving marker, and control playback on a Leaflet map, while also covering optional configurations such as disabling marker rotation.

JavaScriptLeafletTrackPlayer
0 likes · 15 min read
Implementing Trajectory Playback in Leaflet with Leaflet.TrackPlayer and Vue 3