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.
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.
Vibe Coding ProjectsSDD / Spec-Driven Development / Spec Kit / OpenSpec / AI Programming / Vibe Coding / Engineering Governance
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.
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.
DDD Domain ModelingDDD / Domain Modeling / Value Object / KV Object / Generics / Single Responsibility
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.
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.
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.
Distributed MicroservicesSoftware Complexity / Complexity Model / Complexity Measurement / Weighting / Cynefin / Dev Efficiency
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.
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.
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.