🏗️Domain-Driven Design (DDD)
Also known as DDD, Bounded Context, Ubiquitous Language
Code that uses the same words as the business it serves.
Think of it like
Think of it like a builder who learns how a family lives. Then they draw the house.
Example
Emma's team works with a shipping firm. Its staff say consignment, not order, so the code says Consignment too. Meetings and code now use the same words.
Why it matters
Most costly bugs start when two groups mean different things by one word.
Definition
Common mistake
Key takeaways
- 1One shared language. In talk and in code.
- 2Bounded contexts. Each word, one meaning.
- 3Learn the business. Before the code.