Tagged articles
41 articles
Page 1 of 1
IT Services Circle
IT Services Circle
Dec 20, 2025 · Fundamentals

10 Common Python String Pitfalls Every Developer Should Avoid

This article enumerates ten classic mistakes when handling Python strings—covering immutability, identity vs equality, truthiness of empty values, misuse of strip and split, Unicode length, performance of concatenation, encoding issues, and trailing backslashes—to help developers write safer, more efficient code.

ComparisonImmutablePitfalls
0 likes · 7 min read
10 Common Python String Pitfalls Every Developer Should Avoid
Java Architect Handbook
Java Architect Handbook
Nov 22, 2025 · Fundamentals

Master Java’s Pair and Triple: Simplify Multi‑Value Returns with Apache Commons Lang3

This article explains why returning multiple values in Java can be cumbersome, introduces Apache Commons Lang3’s Pair and Triple utilities—including mutable and immutable variants—shows how to add the Maven dependency, and provides clear code examples that demonstrate their creation, modification, and safe usage in real‑world scenarios.

Apache Commons Lang3ImmutableMutable
0 likes · 14 min read
Master Java’s Pair and Triple: Simplify Multi‑Value Returns with Apache Commons Lang3
Code Mala Tang
Code Mala Tang
Nov 2, 2025 · Fundamentals

Unlock Cleaner Code with Python’s Dataclasses: A Practical Guide

This article explains what Python dataclasses are, how they simplify data‑oriented class definitions, and demonstrates advanced features like custom field behavior, the __post_init__ method, and immutable (frozen) classes with clear code examples.

Code SimplificationImmutablePython
0 likes · 4 min read
Unlock Cleaner Code with Python’s Dataclasses: A Practical Guide
Code Mala Tang
Code Mala Tang
Oct 19, 2025 · Fundamentals

Why Python’s += Operator Isn’t Just Sugar: Mutable vs Immutable Secrets

Python’s augmented assignment operators like += look simple, but their behavior varies dramatically between mutable and immutable objects, affecting performance and causing surprising bugs; this article explains the underlying data model, demonstrates with tuples, lists, and mixed structures, and reveals the hidden mechanics behind in‑place and object‑creation operations.

ImmutablePythonaugmented assignment
0 likes · 14 min read
Why Python’s += Operator Isn’t Just Sugar: Mutable vs Immutable Secrets
Code Mala Tang
Code Mala Tang
Jul 15, 2025 · Fundamentals

Master Python Tuples: Immutable Sequences, Creation, Operations & Best Practices

This guide explains Python tuples—immutable ordered collections—covering their definition, creation methods (including packing, unpacking, and single-element tuples), element access, common operations like concatenation, repetition, slicing, membership testing, length retrieval, nesting, and built‑in methods such as count, index, and conversion from lists.

Data StructuresImmutablePython
0 likes · 11 min read
Master Python Tuples: Immutable Sequences, Creation, Operations & Best Practices
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 LangImmutableMutable
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.

Design PatternsImmutableconcurrency
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.

ImmutableListMutable
0 likes · 9 min read
When to Use Python Lists vs Tuples: A Practical Guide
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 StructureImmutablecoding
0 likes · 8 min read
Understanding Python Tuples: Definition, Features, and Practical Examples
FunTester
FunTester
Feb 18, 2024 · Backend Development

Mastering Java Concurrency: Threads, Synchronization, and Immutable Design

This article provides a step‑by‑step guide to Java concurrency, covering core concepts such as threads, runnables, thread lifecycle, synchronization primitives, wait/notify patterns, volatile variables, ThreadLocal storage, and how to design immutable objects for thread‑safety, all illustrated with concrete code examples and detailed explanations.

ImmutableSynchronizationThread
0 likes · 17 min read
Mastering Java Concurrency: Threads, Synchronization, and Immutable Design
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.

ImmutablePHPType Safety
0 likes · 12 min read
Using Value Objects in PHP 8.1/8.2 to Improve Code Quality
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.

ImmutableObject-Orientedbest 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.

ImmutableSynchronizationconcurrency
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.

ImmutableMultimapfunctional-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 StructuresImmutableReact
0 likes · 14 min read
Understanding Immutable Data Structures and Their Use in React and Redux
MaGe Linux Operations
MaGe Linux Operations
Jan 15, 2021 · Fundamentals

Why Everything in Python Is an Object: Unraveling Types, Instances, and Metaclasses

This article explains Python’s core principle that everything is an object, detailing the distinction between type objects, instance objects, and metaclasses, how built‑in types like int and str fit into the hierarchy, the role of the object base class, variable naming as pointers, and the differences between mutable, immutable, fixed‑length and variable‑length objects.

ImmutableMemory ManagementMutable
0 likes · 23 min read
Why Everything in Python Is an Object: Unraveling Types, Instances, and Metaclasses
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.

CacheCollectionsGuava
0 likes · 9 min read
A Comprehensive Guide to Google Guava: Collections, Functional Utilities, and Caching in Java
JavaEdge
JavaEdge
Jun 25, 2020 · Backend Development

Why Using Java Optional Can Eliminate NullPointerExceptions and Simplify Code

This article explains how Java's Optional class provides a lightweight proxy for null values, preventing NullPointerExceptions, and demonstrates best‑practice patterns for immutable objects, field validation, and clean API design with concrete code examples.

Immutablebest-practicesdesign-patterns
0 likes · 6 min read
Why Using Java Optional Can Eliminate NullPointerExceptions and Simplify Code
FunTester
FunTester
Mar 9, 2020 · Fundamentals

Mastering Groovy Tuples: Immutable Collections and Practical Examples

This article explains Groovy's immutable Tuple classes, shows how to create and use Tuple, Tuple2, Tuple3, and demonstrates their read‑only behavior with practical code examples, highlighting why they are ideal for returning multiple values from methods.

BackendGroovyImmutable
0 likes · 4 min read
Mastering Groovy Tuples: Immutable Collections and Practical Examples
Programmer DD
Programmer DD
Nov 25, 2019 · Fundamentals

Top 10 Java Mistakes Every Developer Should Avoid

This article lists the ten most common errors Java developers make, explains why each is problematic, and provides clear code examples and best‑practice alternatives to help you write safer, more efficient Java code.

ArrayListCollectionsHashMap
0 likes · 11 min read
Top 10 Java Mistakes Every Developer Should Avoid
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
Big Data Technology & Architecture
Big Data Technology & Architecture
Aug 19, 2019 · Backend Development

Common Pitfalls When Using Arrays.asList in Java

This article explains why using Java's Arrays.asList with primitive arrays can produce unexpected list sizes, why the resulting list is immutable, and provides correct usage patterns with code examples to avoid UnsupportedOperationException and other bugs.

Arrays.asListImmutableList
0 likes · 6 min read
Common Pitfalls When Using Arrays.asList in Java
MaGe Linux Operations
MaGe Linux Operations
Mar 28, 2019 · Fundamentals

Master Python Shallow vs Deep Copy: When and How to Use Them

This article explains Python's object model, the difference between mutable and immutable objects, how references work, and provides clear examples of shallow and deep copying—including when each method should be used to avoid unintended data modification.

ImmutableMutablePython
0 likes · 11 min read
Master Python Shallow vs Deep Copy: When and How to Use Them
MaGe Linux Operations
MaGe Linux Operations
Sep 29, 2018 · Fundamentals

Master Python Tuples: Indexing, Slicing, and Operations Explained

This article introduces Python 3 tuples as immutable ordered collections, explains how to create, index, slice, concatenate, and replicate them, and demonstrates built‑in functions such as len, max, and min while comparing tuples with lists and showing conversion techniques.

ImmutablePythonSlicing
0 likes · 9 min read
Master Python Tuples: Indexing, Slicing, and Operations Explained
Test Development Learning Exchange
Test Development Learning Exchange
Jul 30, 2018 · Fundamentals

Understanding Python's id() Function and Parameter Passing Mechanics

This article explains Python's id() function, how objects and references work, and demonstrates parameter passing behavior with detailed code examples illustrating memory address handling for immutable and mutable types, including lists, integers, and strings, and clarifies why variable assignments may share the same address.

ImmutableMutableObjects
0 likes · 8 min read
Understanding Python's id() Function and Parameter Passing Mechanics
Java Captain
Java Captain
May 3, 2018 · Fundamentals

Understanding Java Strings: Creation, Immutability, and Operations

This article explains Java's String class, covering its automatic import, how to create string objects without the new keyword, concatenation, immutability, common methods like replace, and provides useful API references and code examples for practical use.

APIImmutableString
0 likes · 6 min read
Understanding Java Strings: Creation, Immutability, and Operations
Qunar Tech Salon
Qunar Tech Salon
Jan 18, 2017 · Frontend Development

React Performance Optimization for YIcon: Reducing Re‑renders and Boosting Speed

This article describes how the YIcon project tackled severe React performance bottlenecks—such as repeated renders, slow diffing, and inefficient key usage—by applying shouldComponentUpdate, component splitting, immutable data structures, stable keys, and production‑grade webpack optimizations, ultimately achieving an 80% speed gain.

ImmutableReactoptimization
0 likes · 9 min read
React Performance Optimization for YIcon: Reducing Re‑renders and Boosting Speed