Tag

immutability

0 views collected around this technical thread.

macrozheng
macrozheng
Oct 28, 2024 · Backend Development

Unlock Java Efficiency: Master Guava’s Most Powerful Features

This article introduces the essential Guava utilities for Java developers, covering data validation, immutable collections, collection factories, multiset and multimap handling, advanced string operations, and simple caching, all with clear code examples to make your code more elegant and robust.

CachingGuavaJava
0 likes · 18 min read
Unlock Java Efficiency: Master Guava’s Most Powerful Features
php中文网 Courses
php中文网 Courses
Aug 21, 2024 · Backend Development

Understanding PHP DateTime: Mutability, Immutability, and Best Practices

This article examines PHP's DateTime class, analyzing its mutable design drawbacks, the benefits of the immutable DateTimeImmutable alternative, and offers practical guidelines and best‑practice strategies for developers to write safer, more maintainable date‑handling code.

Best PracticesDate HandlingDateTime
0 likes · 8 min read
Understanding PHP DateTime: Mutability, Immutability, and Best Practices
Test Development Learning Exchange
Test Development Learning Exchange
May 9, 2024 · Fundamentals

Understanding Python's namedtuple: Benefits and Practical Usage

This article explains Python's namedtuple data structure, highlighting its readability, lightweight nature, performance advantages, built‑in methods, and how it compares to regular tuples through clear code examples that demonstrate creation, element access, updating, serialization, and advanced features.

Data StructuresNamedtuplePython
0 likes · 8 min read
Understanding Python's namedtuple: Benefits and Practical Usage
IT Services Circle
IT Services Circle
May 3, 2024 · Fundamentals

Deep Dive into Java String: Memory Layout, Immutability, and Optimization Techniques

This article explores Java String internals across JDK versions, explaining its memory representation, immutability, substring behavior, and how techniques like StringBuilder, intern(), and shared objects can dramatically reduce memory usage from gigabytes to megabytes in high‑scale applications.

JavaMemory OptimizationStringBuilder
0 likes · 13 min read
Deep Dive into Java String: Memory Layout, Immutability, and Optimization Techniques
Java Captain
Java Captain
Mar 25, 2024 · Fundamentals

Understanding the Underlying Implementation of Java String Immutability

This article explains why Java's String class is immutable, detailing the benefits such as thread safety, cached hash codes, and string pooling, and describes the internal mechanisms—including a private final char array, creation of new objects on concatenation, and the intern method—that enforce this immutability.

ConcurrencyJavaString Pool
0 likes · 5 min read
Understanding the Underlying Implementation of Java String Immutability
Java Captain
Java Captain
Mar 7, 2024 · Fundamentals

Understanding Java's String Class: Immutability, Methods, and Best Practices

This article reflects on the author's journey with Java, explaining the immutable nature of the String class, its rich set of methods—including substring, indexOf, replace, and regex support—while also discussing its limitations and alternatives like StringBuilder.

JavaMethodsRegularExpressions
0 likes · 5 min read
Understanding Java's String Class: Immutability, Methods, and Best Practices
php中文网 Courses
php中文网 Courses
Jan 17, 2024 · Backend Development

Understanding PHP 8 Readonly Properties: Definition, Benefits, and Usage

PHP 8 introduces readonly properties that can only be set during object initialization, providing immutable, constant-like behavior useful for defining constants, protecting sensitive data, and enhancing code safety, with examples showing initialization, immutability, consistency, and even getter/setter usage.

Backend DevelopmentReadonly Propertiescode examples
0 likes · 6 min read
Understanding PHP 8 Readonly Properties: Definition, Benefits, and Usage
php中文网 Courses
php中文网 Courses
Dec 14, 2023 · Fundamentals

Understanding Different Types of Value Objects and Their Implementation in PHP

This article explores simple, complex, and composite value objects in PHP, providing guidelines for their design, validation, immutability, string representation, equality checks, while also discussing alternative error handling approaches such as Either types and union types.

Domain-Driven DesignError HandlingFactory Method
0 likes · 16 min read
Understanding Different Types of Value Objects and Their Implementation in PHP
Cognitive Technology Team
Cognitive Technology Team
Oct 6, 2023 · Fundamentals

Why Java Strings Are Immutable: Performance, Security, and Thread‑Safety Benefits

The article explains why Java's String class is immutable, highlighting performance gains from constant‑pool caching, security advantages for sensitive data, thread‑safety without synchronization, and hash‑code caching that speeds up hash‑based collections in Java applications.

HashingJavaSecurity
0 likes · 4 min read
Why Java Strings Are Immutable: Performance, Security, and Thread‑Safety Benefits
IT Services Circle
IT Services Circle
Aug 13, 2022 · Fundamentals

The Rise and Benefits of Functional Programming in Modern Software Development

Functional programming, once a niche paradigm, is rapidly entering mainstream software development as teams adopt pure functions, immutability, and higher‑order functions to reduce bugs, improve modularity, and manage the growing complexity of large codebases across many languages and frameworks.

Functional ProgrammingHigher-order FunctionsSoftware Development
0 likes · 11 min read
The Rise and Benefits of Functional Programming in Modern Software Development
Architect's Tech Stack
Architect's Tech Stack
May 12, 2021 · Fundamentals

Understanding Java String Immutability and the String Constant Pool

This article explains why Java strings are immutable, how the JVM uses the string constant pool and the final keyword to manage memory, and demonstrates the behavior with code examples that show reference handling, object creation, and common string operations.

JVMJavaString Pool
0 likes · 11 min read
Understanding Java String Immutability and the String Constant Pool
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Mar 24, 2021 · Fundamentals

Why Java Strings Are Immutable and the Benefits of Immutability

The article explains Java's String immutability, shows how concatenation creates new objects, and discusses the design reasons—caching, security, thread‑safety, hash‑code caching and performance—while recommending mutable alternatives like StringBuilder for modifiable text.

JavaSecurityThread Safety
0 likes · 7 min read
Why Java Strings Are Immutable and the Benefits of Immutability
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 13, 2020 · Fundamentals

Understanding Java String, StringBuilder, and StringBuffer

This article explains the immutable nature of Java's String class, compares it with mutable StringBuilder and thread‑safe StringBuffer, shows how the JVM handles string literals, constant pool, intern(), and provides performance guidelines and code examples for efficient string manipulation.

JavaStringBufferStringBuilder
0 likes · 16 min read
Understanding Java String, StringBuilder, and StringBuffer
Architects Research Society
Architects Research Society
Apr 29, 2020 · Blockchain

Understanding Bitcoin: Basics, Features, and How It Works

This article explains Bitcoin by distinguishing the digital token from its underlying protocol, describes its decentralized network, limited supply, pseudonymous usage, immutability, divisibility, and how it differs from traditional fiat currencies, providing a clear introductory overview of cryptocurrency fundamentals.

Supply Limitbitcoinblockchain
0 likes · 8 min read
Understanding Bitcoin: Basics, Features, and How It Works
vivo Internet Technology
vivo Internet Technology
Sep 18, 2019 · Fundamentals

Functional Programming in JavaScript: Theory, History, and Key Concepts

The article surveys functional programming’s origins, from Hilbert and Church to lambda calculus, explains its pure‑computation model versus imperative state mutation, outlines essential concepts such as currying, higher‑order functions, and immutability, discusses JavaScript‑specific practices and limitations, and notes the growing impact of functional ideas in modern front‑end frameworks.

Functional ProgrammingHigher-order FunctionsJavaScript
0 likes · 24 min read
Functional Programming in JavaScript: Theory, History, and Key Concepts
Java Captain
Java Captain
Jan 20, 2018 · Fundamentals

Understanding Java String Immutability and Assignment

This article explains how Java strings are defined, how assigning one string variable to another copies the reference, how concatenation creates a new immutable string object, and why mutable alternatives like StringBuilder should be used to avoid excessive garbage collection.

Javafundamentalsimmutability
0 likes · 2 min read
Understanding Java String Immutability and Assignment
Java Captain
Java Captain
Nov 24, 2017 · Fundamentals

Illustrated Guide to Core Java Concepts

This article presents a series of annotated diagrams from the Program Creek Java tutorial that visually explain fundamental Java topics such as string immutability, the difference between equals() and hashCode(), exception hierarchy, collection framework, synchronization, aliasing, heap vs. stack memory, and the JVM runtime data areas.

Core ConceptsJVMJava
0 likes · 3 min read
Illustrated Guide to Core Java Concepts
Java Captain
Java Captain
Nov 21, 2017 · Fundamentals

Understanding the final Keyword in Java: Variables, Methods, and Classes

This article explains Java's final keyword, covering its use with classes, methods, and variables, demonstrates how to declare final members, shows code examples of final variables, methods, and classes, and discusses the performance, thread‑safety, and immutability benefits of using final in Java applications.

JavaThread Safetyfinal
0 likes · 7 min read
Understanding the final Keyword in Java: Variables, Methods, and Classes
Architecture Digest
Architecture Digest
Jul 3, 2017 · Mobile Development

Responsive Architecture in iOS: History, Essence, Benefits, and Integration Strategies

The article explores the evolution and core concepts of responsive architecture for iOS, explains immutability and its model layer, examines Flux as its foundational pattern, and provides practical guidance on integrating responsive design into existing mobile app architectures.

FluxMobile DevelopmentModel Layer
0 likes · 11 min read
Responsive Architecture in iOS: History, Essence, Benefits, and Integration Strategies