Tag

Immutable

0 views collected around this technical thread.

Code Ape Tech Column
Code Ape Tech Column
May 29, 2025 · Backend Development

Using Apache Commons Lang3 Pair and Triple Classes to Return Multiple Values in Java

Apache Commons Lang3 provides Pair and Triple classes that let Java developers return multiple related values without custom wrappers, offering immutable and mutable variants, easy Maven integration, and clear APIs for handling key‑value pairs and three‑element tuples, improving code readability and maintainability.

Apache Commons LangImmutableJava
0 likes · 15 min read
Using Apache Commons Lang3 Pair and Triple Classes to Return Multiple Values in Java
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 15, 2025 · Fundamentals

Mastering Thread‑Safe Classes in Java: 6 Proven Design Strategies

This article explains what makes a class thread‑safe in Java, illustrates common race‑condition pitfalls with sample code, and presents six practical design strategies—including stateless, immutable, synchronized, volatile, concurrent collections, thread‑confinement, and defensive copying—to help developers build robust, high‑performance concurrent applications.

ImmutableJavaSynchronization
0 likes · 11 min read
Mastering Thread‑Safe Classes in Java: 6 Proven Design Strategies
Code Mala Tang
Code Mala Tang
May 3, 2025 · Fundamentals

When to Use Python Lists vs Tuples: A Practical Guide

This article explains the differences between Python lists and tuples, covering their definitions, mutable vs immutable nature, syntax, performance, common pitfalls, and best-use scenarios such as dynamic collections, fixed data, and dictionary keys, with clear code examples.

Data StructuresImmutableMutable
0 likes · 9 min read
When to Use Python Lists vs Tuples: A Practical Guide
Code Mala Tang
Code Mala Tang
Apr 23, 2025 · Fundamentals

Why Everything Is an Object in Python: Understanding Mutable vs Immutable

This article explains Python’s core principle that every value is an object, detailing how identity, type, and value define objects, and contrasts mutable and immutable types through practical code examples, illustrating their impact on memory management, variable assignment, function arguments, and common pitfalls.

ImmutableMemory ManagementMutable
0 likes · 11 min read
Why Everything Is an Object in Python: Understanding Mutable vs Immutable
Test Development Learning Exchange
Test Development Learning Exchange
Feb 26, 2025 · Fundamentals

Understanding Python Tuples: Definition, Features, and Practical Examples

This article introduces Python tuples, explaining their immutable ordered nature, core characteristics, and provides eleven practical code examples ranging from basic definition and indexing to unpacking, concatenation, using tuples as dictionary keys, and converting them to lists, illustrating common use cases and best practices.

Data StructureExampleImmutable
0 likes · 8 min read
Understanding Python Tuples: Definition, Features, and Practical Examples
Test Development Learning Exchange
Test Development Learning Exchange
Feb 12, 2025 · Fundamentals

Understanding Python Tuples: Immutable Sequences and Their Uses

This article explains Python tuples as immutable sequence types, covering their characteristics such as immutability, multiple return values, unpacking, use as dictionary keys, iteration, performance benefits, and practical examples to help write clearer and safer code.

Data StructuresImmutableprogramming
0 likes · 4 min read
Understanding Python Tuples: Immutable Sequences and Their Uses
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 2, 2024 · Fundamentals

Understanding Java BigDecimal: Internal Storage, Precision, and Best Practices

This article explains the Java BigDecimal class, detailing its internal storage mechanisms, precision handling, immutable design, and common pitfalls, and provides best‑practice guidelines for constructing, comparing, dividing, and converting BigDecimal values to ensure accurate numerical computations.

BigDecimalImmutableJava
0 likes · 10 min read
Understanding Java BigDecimal: Internal Storage, Precision, and Best Practices
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 17, 2024 · Frontend Development

Performance Optimization and Benchmarking of the limu Immutable Data Library

This article details the design, three major benefits, optimization steps, and extensive benchmark results of the limu immutable data library, demonstrating how meta handling, prototype manipulation, and Map‑based storage dramatically improve performance compared to other libraries such as immer, mutative, and structura.

ImmutableJavaScriptbenchmark
0 likes · 15 min read
Performance Optimization and Benchmarking of the limu Immutable Data Library
php中文网 Courses
php中文网 Courses
Dec 9, 2023 · Backend Development

Using Value Objects in PHP 8.1/8.2 to Improve Code Quality

The article explains how the Value Object pattern, combined with PHP 8.1/8.2 features like readonly properties and named arguments, can eliminate primitive‑type validation duplication, prevent parameter‑order mistakes, and ensure immutability, thereby making PHP code more robust, maintainable, and self‑documenting.

ImmutableType SafetyValue Object
0 likes · 12 min read
Using Value Objects in PHP 8.1/8.2 to Improve Code Quality
Test Development Learning Exchange
Test Development Learning Exchange
Nov 7, 2023 · Fundamentals

Mutable vs Immutable Types in Python and Their Use in Multithreaded Programming

This article explains the memory‑management differences between mutable and immutable Python objects, demonstrates how each type behaves with code examples, and shows how immutability improves thread safety while providing practical synchronization techniques for mutable data in concurrent programs.

ImmutableMutablePython
0 likes · 9 min read
Mutable vs Immutable Types in Python and Their Use in Multithreaded Programming
Cognitive Technology Team
Cognitive Technology Team
Sep 28, 2023 · Fundamentals

Guidelines for Designing Immutable Classes in Java

This article outlines seven essential practices for creating immutable Java classes, including declaring the class as final, using private final fields, omitting setters, performing deep copies, overriding equals() and hashCode(), avoiding this‑escape in constructors, and protecting against reflective modification.

ImmutableJavabest practices
0 likes · 2 min read
Guidelines for Designing Immutable Classes in Java
Sanyou's Java Diary
Sanyou's Java Diary
Sep 5, 2022 · Fundamentals

Mastering Java Thread Safety: Levels, Strategies, and Best Practices

This article explains Java thread‑safety concepts, classifies five safety levels from immutable to thread‑hostile, and details synchronization techniques—including mutual exclusion, non‑blocking CAS, and no‑sync approaches like reentrant code and thread‑local storage—to help developers write safe concurrent code.

ImmutableJavaSynchronization
0 likes · 10 min read
Mastering Java Thread Safety: Levels, Strategies, and Best Practices
Architect's Tech Stack
Architect's Tech Stack
Aug 14, 2022 · Backend Development

Exploring Google Guava: Joiner, Splitter, CharMatcher, Collections, and More

This article introduces Google Guava's powerful utilities—including Joiner, Splitter, CharMatcher, primitive type extensions, Multiset, Immutable collections, Multimap, BiMap, Table, functional Functions, Predicate, null‑checking, local caching, and asynchronous callbacks—demonstrating how they simplify Java development and improve code readability and safety.

CacheCollectionsFunctional Programming
0 likes · 10 min read
Exploring Google Guava: Joiner, Splitter, CharMatcher, Collections, and More
政采云技术
政采云技术
Jun 22, 2021 · Frontend Development

Understanding Immutable Data Structures and Their Use in React and Redux

This article explains what immutable data structures are, outlines their advantages such as reduced complexity, memory savings, easy state rollback, and functional programming benefits, and demonstrates practical usage of Immutable.js in React components and Redux integration with code examples and best‑practice tips.

Data StructuresImmutableJavaScript
0 likes · 14 min read
Understanding Immutable Data Structures and Their Use in React and Redux
Top Architect
Top Architect
Nov 18, 2020 · Backend Development

A Comprehensive Guide to Google Guava: Collections, Functional Utilities, and Caching in Java

This article introduces the core features of Google Guava—including Joiner, Splitter, CharMatcher, primitive type helpers, Multiset, immutable collections, Multimap, BiMap, Table, functional utilities like Functions and Predicates, Optional, Preconditions, and a powerful local Cache—showcasing how they simplify Java development and improve code readability, safety, and performance.

CacheCollectionsFunctional Programming
0 likes · 9 min read
A Comprehensive Guide to Google Guava: Collections, Functional Utilities, and Caching in Java
360 Tech Engineering
360 Tech Engineering
Jun 6, 2020 · Frontend Development

Understanding JavaScript Record & Tuple Proposal: Immutable Value Types and Their Benefits

This article explains the Stage‑1 JavaScript Record & Tuple proposal, showing how the new immutable value types are created with a leading #, how they differ from objects by using value‑based comparison, and why they improve deep equality, sharing, non‑destructive updates, and usage in Maps and Sets.

ECMAScriptImmutableJavaScript
0 likes · 10 min read
Understanding JavaScript Record & Tuple Proposal: Immutable Value Types and Their Benefits
Python Programming Learning Circle
Python Programming Learning Circle
Apr 14, 2020 · Fundamentals

Understanding Python Tuples: Creation, Usage, and Benefits

This article explains Python tuples, contrasting them with lists, covering their immutable nature, how they enable functions to return multiple values, performance advantages, creation syntax, updating via slicing, deletion, and membership operations, all illustrated with clear code examples.

Data StructuresImmutablePython
0 likes · 6 min read
Understanding Python Tuples: Creation, Usage, and Benefits
Python Programming Learning Circle
Python Programming Learning Circle
Mar 17, 2020 · Fundamentals

Understanding Python Tuples: Indexing, Slicing, Concatenation, and Built‑in Functions

This article explains Python tuples as immutable ordered collections, covering their creation, indexing (including negative indices), slicing with optional stride, concatenation and replication operators, and useful built‑in functions such as len, max, and min, while contrasting tuples with lists.

ImmutableIndexingbuilt-in-functions
0 likes · 8 min read
Understanding Python Tuples: Indexing, Slicing, Concatenation, and Built‑in Functions
Qunar Tech Salon
Qunar Tech Salon
Oct 9, 2019 · Frontend Development

Breaking the Framework Paradigm Debate

At a GitHub China meetup, the author reflects on Rich Harris’s critique of React, compares mutable versus immutable reactivity in Vue and React, examines functional programming foundations, and proposes a unified approach integrating mutable, immutable, and reactive patterns to transcend framework paradigm disputes.

ImmutableMutableReact
0 likes · 9 min read
Breaking the Framework Paradigm Debate
Test Development Learning Exchange
Test Development Learning Exchange
Aug 28, 2018 · Fundamentals

Understanding Python frozenset: Immutable Sets and Their Operations

This article explains Python's frozenset type, detailing its immutable nature, creation syntax, differences from mutable sets, supported operations, membership testing, and practical code examples illustrating set algebra and method usage.

CollectionsData StructuresImmutable
0 likes · 9 min read
Understanding Python frozenset: Immutable Sets and Their Operations