Bookmarks

Ubiquitous language

A shared vocabulary of developers and domain experts, in which the terms of the domain sound the same in conversation, documents and code.

Also: common language, domain language, ubiquitous language

checked 8 Nov

All terms

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.

FormHow the term is expressed
Conversationexperts 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 diagramsthe requirements and diagrams use the same names as the code
Codethe 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

Verified 8 Nov

Not to be confused with

what it is mixed up with and how it differs

  • bounded context

    A bounded context sets the boundary of the model, and the ubiquitous language is the vocabulary inside that boundary; beyond it the same words mean something else.

In depth in the references

where the topic is covered in detail