Tagged articles
41 articles
Page 1 of 1
php Courses
php Courses
Nov 21, 2025 · Backend Development

Why You Should Prefer DateTimeImmutable Over DateTime in PHP

DateTimeImmutable, introduced in PHP 5.5, offers immutable date objects that prevent side‑effects and improve code safety, while DateTime remains mutable; the article compares their behaviors, shows practical examples, outlines risks of mutability, and provides guidance on when to use each class.

DateTimeImmutablebest practicesdatetime
0 likes · 6 min read
Why You Should Prefer DateTimeImmutable Over DateTime in PHP
Java Architecture Diary
Java Architecture Diary
Oct 17, 2025 · Backend Development

Mastering Immutability in Java: Records and Lombok @Value Made Simple

This article explores how Java Records and Lombok’s @Value annotation enable developers to create immutable objects, covering the definition of immutability, its benefits for thread safety and code simplicity, traditional implementation pitfalls, and concise modern approaches with practical code examples.

Backend DevelopmentJavaLombok
0 likes · 10 min read
Mastering Immutability in Java: Records and Lombok @Value Made Simple
Code Mala Tang
Code Mala Tang
Sep 1, 2025 · Backend Development

Why Deep‑Copying Request Payloads Is Critical for Safe Node.js APIs

Deep‑copying request payloads in Node.js prevents unintended mutations across middleware, protects shared state in async operations, improves debugging and security, and aligns with functional programming principles, making your APIs more robust, maintainable, and safe for handling user data and transactions.

Node.jsSecuritydeep copy
0 likes · 12 min read
Why Deep‑Copying Request Payloads Is Critical for Safe Node.js APIs
JavaScript
JavaScript
Jul 13, 2025 · Frontend Development

Boost React State Updates with the New Array.prototype.with() Method

This article explains why mutating state in React or Vue breaks predictability, compares traditional immutable update techniques like map() and spread syntax, and demonstrates how the native Array.prototype.with() method provides a concise, high‑performance, immutable way to replace array elements in a single step.

ArrayJavaScriptReact
0 likes · 5 min read
Boost React State Updates with the New Array.prototype.with() Method
Code Mala Tang
Code Mala Tang
Jun 19, 2025 · Fundamentals

What Really Creates Python Objects? Unveiling __new__ vs __init__

This article explains how Python actually creates objects, clarifying the distinct roles of the __new__ and __init__ methods, and demonstrates practical techniques such as inheriting immutable types, adding metadata, and implementing singleton patterns through custom object creation.

Object-OrientedPythondesign-patterns
0 likes · 13 min read
What Really Creates Python Objects? Unveiling __new__ vs __init__
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.

GuavaMultimapString Manipulation
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.

BackendPHPbest-practices
0 likes · 8 min read
Understanding PHP DateTime: Mutability, Immutability, and Best Practices
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Aug 9, 2024 · Fundamentals

What Makes an Object Hashable in Python and How Is Its Hash Computed?

An object is hashable in Python if it is immutable and implements __eq__, allowing it to serve as a dictionary key; the hash value is normally derived from the object's address unless __hash__ is overridden, and equal objects must share identical hash values, influencing dictionary indexing and collision handling.

custom __eq__custom __hash__dictionary
0 likes · 11 min read
What Makes an Object Hashable in Python and How Is Its Hash Computed?
21CTO
21CTO
May 28, 2024 · Frontend Development

Unlock Cutting-Edge JavaScript: Monads, Declarative Code, Caching & More

This article explores five advanced JavaScript techniques—Monads, declarative programming, server‑side caching, immutability, and pattern matching—explaining their concepts, benefits, and providing practical code examples to help senior developers build more robust, high‑performance web applications.

Advanced TechniquesJavaScriptMonads
0 likes · 10 min read
Unlock Cutting-Edge JavaScript: Monads, Declarative Code, Caching & More
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.

JavaMemory ManagementString
0 likes · 5 min read
Understanding the Underlying Implementation of Java String Immutability
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 DevelopmentCode ExamplesPHP
0 likes · 6 min read
Understanding PHP 8 Readonly Properties: Definition, Benefits, and Usage
Java Backend Technology
Java Backend Technology
Mar 14, 2023 · Backend Development

Mastering Google Guava: Powerful Java Utilities for Cleaner Code

This article explores Google Guava’s rich set of utilities—including Joiner, Splitter, CharMatcher, Multiset, Multimap, BiMap, Table, Functions, Predicate, Optional, Preconditions, and Cache—demonstrating how they simplify string handling, collections, immutability, caching, and asynchronous callbacks for more elegant Java development.

CollectionsGoogle GuavaJava
0 likes · 11 min read
Mastering Google Guava: Powerful Java Utilities for Cleaner Code
JavaEdge
JavaEdge
Feb 7, 2023 · Fundamentals

How to Safeguard Your Code Against Unintended Modifications

The article explains how shared mutable state, such as global or static variables, can cause hard‑to‑debug bugs in multithreaded Java applications, and demonstrates that adopting immutability, pure functions, and event‑sourcing principles eliminates these issues, offering concrete coding guidelines and examples.

Javafunctional programmingimmutability
0 likes · 10 min read
How to Safeguard Your Code Against Unintended Modifications
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.

Higher-Order FunctionsProgramming ParadigmsPure Functions
0 likes · 11 min read
The Rise and Benefits of Functional Programming in Modern Software Development
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Aug 3, 2022 · Fundamentals

Why Is Java String Immutable? Understanding Final, Thread Safety, and Performance

This article examines Java's String immutability, detailing how the final character array and private design prevent modification, compares mutable alternatives like StringBuilder and StringBuffer, and discusses their thread safety and performance implications to guide developers in choosing the appropriate class for different scenarios.

JavaStringimmutability
0 likes · 5 min read
Why Is Java String Immutable? Understanding Final, Thread Safety, and Performance
ITPUB
ITPUB
Jul 6, 2022 · Backend Development

Mastering Value Objects in Go: A Practical DDD Guide

This article walks through applying Domain‑Driven Design in Go, focusing on value objects: their definition, immutability, implementation details, common pitfalls with pointers and serialization, practical code patterns, and how to model enums, offering concrete guidance for robust backend development.

Backend ArchitectureDomain-Driven DesignGo
0 likes · 15 min read
Mastering Value Objects in Go: A Practical DDD Guide
21CTO
21CTO
Jun 24, 2022 · Backend Development

Understanding PHP’s New Readonly Classes: Benefits, Syntax, and Limitations

The PHP RFC introduces readonly classes, allowing all properties of a class to be immutable, prohibiting dynamic and static properties, and providing reflection support, with examples, restrictions, inheritance rules, and compatibility notes, helping developers write safer, more robust code.

PHPReflectionimmutability
0 likes · 5 min read
Understanding PHP’s New Readonly Classes: Benefits, Syntax, and Limitations
Java Backend Technology
Java Backend Technology
Mar 25, 2021 · Fundamentals

Why Is Java’s String Immutable? Uncover the JVM’s Secret

This article explains why Java String objects are immutable, how the JVM’s string constant pool reuses instances, the role of the final keyword and char[] storage, and demonstrates that all mutating operations actually create new String objects rather than altering the original.

JVMJavaString
0 likes · 10 min read
Why Is Java’s String Immutable? Uncover the JVM’s Secret
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.

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

BitcoinSupply Limitcryptocurrency
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.

Higher-Order FunctionsPure Functionsimmutability
0 likes · 24 min read
Functional Programming in JavaScript: Theory, History, and Key Concepts
Programmer DD
Programmer DD
Sep 11, 2019 · Fundamentals

Why Java Strings Are Final and How Interning Affects Memory

This article explains the two ways to create Java strings, demonstrates how string literals are shared in the method area, shows the effect of the intern() method at runtime, and discusses why the String class is final, immutable, and thread‑safe.

JavaMemory ManagementString
0 likes · 8 min read
Why Java Strings Are Final and How Interning Affects Memory
Programmer DD
Programmer DD
Aug 24, 2019 · Fundamentals

Why Java Strings Are Immutable and How It Boosts Performance

This article explains the concept of Java String immutability, illustrates how references work with examples and diagrams, and discusses the benefits such as string pool reuse, hashcode caching, thread safety, and security that improve memory efficiency and application performance.

JavaStringimmutability
0 likes · 8 min read
Why Java Strings Are Immutable and How It Boosts Performance
21CTO
21CTO
Aug 23, 2019 · Fundamentals

Why Object-Oriented Programming Is Failing and Functional Programming Is the Future

Object-oriented programming, once hailed as the pinnacle of software design, is criticized for its complexity, mutable state, and poor testability, while functional programming offers simpler, more reliable code through immutability and pure functions, prompting a call to abandon OOP in favor of functional paradigms.

OOPProgramming Paradigmscomplexity
0 likes · 29 min read
Why Object-Oriented Programming Is Failing and Functional Programming Is the Future
21CTO
21CTO
Apr 13, 2018 · Blockchain

Building a Simple Java Blockchain: Code Walkthrough & Core Concepts

This article explains blockchain fundamentals and demonstrates a Java implementation, covering block structure, immutability, hashing, Merkle trees, transaction handling, proof‑of‑work mining, and unit tests with complete code examples.

JavaMerkle TreeProof of Work
0 likes · 12 min read
Building a Simple Java Blockchain: Code Walkthrough & Core 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.

JavaStringfundamentals
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 ConceptsExceptionsJVM
0 likes · 3 min read
Illustrated Guide to Core Java Concepts
Qunar Tech Salon
Qunar Tech Salon
Jan 25, 2016 · Backend Development

Comprehensive Java Best Practices and Essential Libraries Guide

This article presents a detailed guide to modern Java development, covering coding style, immutable data structures, builder patterns, dependency injection, null handling, formatting, Javadoc, streams, publishing strategies, Maven configuration, CI tools, repository management, configuration automation, essential development tools, and a curated list of widely used Java libraries.

Builder PatternJavabest practices
0 likes · 22 min read
Comprehensive Java Best Practices and Essential Libraries Guide
Qunar Tech Salon
Qunar Tech Salon
Dec 10, 2014 · Fundamentals

Why Immutable Objects Matter in Java and Object‑Oriented Design

The article explains the concept of immutable objects in object‑oriented programming, uses Java’s String and Date classes as examples, lists benefits such as thread safety, reduced coupling and side‑effects, and discusses counter‑arguments and practical considerations for adopting immutability.

DesignJavaObject-Oriented
0 likes · 8 min read
Why Immutable Objects Matter in Java and Object‑Oriented Design