Blog

Technical Blog

Notes on software development, AI tooling, and personal project practices.

All41Distributed Microservices4DDD Domain Modeling29Vibe Coding Projects8

The Three Realms of Business Modeling

Borrowing the idea of the three realms of learning to talk about business modeling: modeling from requirements, modeling from other people's models, and modeling from reality. With firsthand experience from Meituan's delivery route optimization, a warehouse management system, and a permission model, plus what each approach costs and when it fits.

Why Do Seasoned Engineers Like Event-Driven Domain Modeling?

An analysis of why event-driven modeling is so popular in DDD circles, through event-driven design, event sourcing, modeling artifacts, and model optimization — plus where it works well, where it misleads, and why it is not a universal answer.

Spec-Driven Development (SDD): A Learning Record

A systematic learning record on Spec-Driven Development: how SDD differs from Vibe Coding, the research workflow and the six core capabilities, open-source frameworks such as Spec Kit and OpenSpec, layered governance of spec files, token optimization, conflict resolution, cross-project orchestration, and the origins and rise of SDD.

Extension Points as the Enemy of DDD and Mid-Platforms

Starting from the open-closed principle, why extension points become the enemy of DDD and mid-platforms: their impact on domain models, their difficulty to trace in call chains, and how extension implementations rot — plus control strategies across the framework, design pattern, capability orchestration, domain design, and implementation dimensions.

Domain Modeling Walkthrough with an Extremely Simple Scenario

Starting from the simplest Key-Value object, a step-by-step domain modeling walkthrough: value object abstraction, persistence modeling, grouping and association, tree structures, JSON deserialization, and value parsing — ending in responsibility and service interface design.

How to Measure Software System Complexity (Part 1)

Part one of a series on software complexity: why software becomes complex — from the depth of application across domains, the diversity of stacks and languages, computer architecture and protocols, the nature of requirements, and people themselves — plus a survey of complex systems and complexity from different perspectives.

How to Measure Software System Complexity (Part 2)

Part two of a series on software complexity: mapping the factors across the full lifecycle — requirements research, development, delivery, and operations — and quantifying complexity along the dimensions of time, space, and cost, plus its dynamism, fragility, transitivity, and equivalence.

How to Measure Software System Complexity (Part 3)

Part three of a series on software complexity: quantifying complexity factors into time, space, and cost vectors, building the weighted model C = T + S + M, and measuring real systems with code examples, evaluation tables, and the Cynefin framework.

Code Governance Across Architectural Styles with DDD

A practical account of code governance drawn from refactoring a product center: how governance differs from refactoring, where DDD code complexity comes from, how to govern code, and what to watch for from the Servlet/JSP era through microservices and mobile.

Splitting and Merging Domains in DDD

An introduction to common scenarios for splitting and merging domain contexts in DDD, with real cases from e-commerce and enterprise office, plus practical guidance at the code, architecture design, and interface and documentation levels.