Tagged articles

Value Object

14 articles · Page 1 of 1
Yumin Fish Harvest
Yumin Fish Harvest
Jul 10, 2026 · Fundamentals

Distinguishing Entities vs Value Objects in DDD: Criteria & Code

Learn how to tell whether a domain concept is an Entity or a Value Object by asking if its identity matters or only its attributes, see concrete examples with Money, Address and Order, understand immutable design, proper equals/hashCode implementation, and validation through unit tests.

Domain-Driven DesignImmutableModeling
0 likes · 13 min read
Distinguishing Entities vs Value Objects in DDD: Criteria & Code
Tinker Programmer
Tinker Programmer
Jun 27, 2026 · Backend Development

What Real Problem Does DDD Solve? Cutting Through the Confusing Concepts

The article explains why traditional three‑layer architectures let business logic bloat inside services, demonstrates the pitfalls of anemic domain models with a 7,000‑line SalaryService example, and shows how DDD’s rich domain model restores rule ownership and maintainability.

Anemic Domain ModelDomain-Driven DesignRich Domain Model
0 likes · 10 min read
What Real Problem Does DDD Solve? Cutting Through the Confusing Concepts
Cloud Architecture
Cloud Architecture
Apr 25, 2026 · Databases

How a Phone Number Field Can Crash a 2B‑User Database – Architect’s Design Guide

A mis‑designed phone number column can silently degrade index performance, overload CPU, and cause a cascade of timeouts in a 2‑billion‑user system, but by treating the phone as a domain value object, using a normalized VARCHAR, aligning indexing rules, and applying consistent sharding and migration strategies, you can prevent the database from collapsing under high concurrency.

Database DesignMySQLSchema Migration
0 likes · 31 min read
How a Phone Number Field Can Crash a 2B‑User Database – Architect’s Design Guide
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 23, 2024 · Fundamentals

Mastering Domain-Driven Design: A Complete Guide to DDD Principles

This article provides a comprehensive introduction to Domain‑Driven Design (DDD), covering its origins, core principles, layered architecture, key concepts such as entities, value objects, aggregates, bounded contexts, and how DDD improves communication and maintainability in complex software systems.

Bounded ContextDomain-Driven DesignValue Object
0 likes · 6 min read
Mastering Domain-Driven Design: A Complete Guide to DDD Principles
JavaEdge
JavaEdge
Aug 23, 2024 · Backend Development

Mastering DDD Tactical Design: Entities, Value Objects, Aggregates and More

This article delves into the tactical design of Domain‑Driven Design, explaining core building blocks such as entities, value objects, aggregates, domain events, repositories, application services, and domain services, and shows how they help keep business logic centralized and expressive.

Application ServiceDDDDomain Event
0 likes · 9 min read
Mastering DDD Tactical Design: Entities, Value Objects, Aggregates and More
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.

Design PatternImmutablePHP
0 likes · 12 min read
Using Value Objects in PHP 8.1/8.2 to Improve Code Quality
Alibaba Cloud Developer
Alibaba Cloud Developer
May 8, 2023 · Fundamentals

Transform Spaghetti Code into Clean Architecture with 3 Powerful Patterns

This article redefines what constitutes good code by using a star‑chart analogy, exposing typical spaghetti‑code pitfalls, and introducing three design patterns—Value Object, Side‑Effect‑Free Function, and Intention‑Revealing Interface—to help developers refactor and write maintainable software.

Software DesignValue Objectcode quality
0 likes · 13 min read
Transform Spaghetti Code into Clean Architecture with 3 Powerful Patterns
ITPUB
ITPUB
Jul 8, 2022 · Fundamentals

Why Entities Matter in DDD: Understanding Identity, Uniqueness, and Aggregate Roots

This article explains the core DDD concepts of entities, value objects, and aggregate roots in Go, detailing how unique identifiers differ from database primary keys, when to use value objects versus primitive types, and best practices for generating and handling IDs within aggregates.

Aggregate rootDDDGo
0 likes · 17 min read
Why Entities Matter in DDD: Understanding Identity, Uniqueness, and Aggregate Roots
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 DesignEnum
0 likes · 15 min read
Mastering Value Objects in Go: A Practical DDD Guide
IT Architects Alliance
IT Architects Alliance
Oct 7, 2021 · Fundamentals

Understanding Entity and Value Object Concepts in Message Domain Design

This article explains the core characteristics of entities—identity and continuity—using domain‑driven design principles, analyzes why a Message should be modeled as an entity, and argues that senders and recipients are better represented as entities rather than value objects in a messaging system.

Domain-Driven DesignMessage ArchitectureSoftware Design
0 likes · 11 min read
Understanding Entity and Value Object Concepts in Message Domain Design
Architect
Architect
Oct 5, 2021 · Fundamentals

Understanding Entities and Value Objects in Domain‑Driven Design: Why a Message Should Be an Entity and Contacts Should Be Treated as Entities

The article explains the core characteristics of entities—identity and continuity—using DDD concepts, demonstrates why a Message in a messaging scenario qualifies as an entity, and argues that senders and recipients (contacts) should also be modeled as entities rather than value objects.

DDDDomain-Driven DesignMessage
0 likes · 12 min read
Understanding Entities and Value Objects in Domain‑Driven Design: Why a Message Should Be an Entity and Contacts Should Be Treated as Entities