Ubiquitous language is a practice from domain-driven design: the team agrees on the terms of the domain and uses them everywhere — in conversations with experts, in documents and in code. Eric Evans introduced the term in the book Domain-Driven Design (2003).
Where the language lives
The language is built on the domain model and cements it: a term refined in conversation immediately lands in the code, and vice versa. The word “ubiquitous” is there for a reason: the term must sound in all of these forms without exception.
| Form | How the term is expressed |
|---|---|
| Conversation | experts and developers call things by the same words, with no “translation”; a conversation with an expert is a way to test the language |
| Documents and diagrams | the requirements and diagrams use the same names as the code |
| Code | the term is the name of a class, method or field: Payment, approveOrder |
Rigour and validation
A conversational word is not enough for the language: code does not tolerate ambiguity, so a term must have a precise meaning in the model. The language is continuously tested in conversations with experts: an expert objects when a term is poor or conveys their understanding inaccurately, a developer — when words are ambiguous or contradict each other. Once a more precise term is found, both the model and the code are renamed.
What happens without it
- The expert says “policy”, the developer says “insurance contract”, and a third name lives in the code: every translation is a place where meaning is lost and errors are born.
- Documents fall behind the code: the term was refined in conversation, while the requirements and the classes keep the old meaning.
- Knowledge gets locked away with individual people: a newcomer has to learn two vocabularies and keep the mapping between them in mind.
One language, one context
The language is not shared across the whole company: it works within a bounded context and changes together with the model. The word “order” is a different term for sales, support and delivery — and that is fine as long as the boundaries between the contexts are respected.
Sources
the term is written from these pages- Eric Evans — Domain-Driven Design: Tackling Complexity in the Heart of Software (2003), глава «Communication and the Use of Language»informit.com/store/domain-driven-design-tackling-complexity-in-the-heart-9780321125217(opens in a new tab)
- Martin Fowler — UbiquitousLanguagemartinfowler.com/bliki/UbiquitousLanguage.html(opens in a new tab)
Verified 8 Nov