SOLID & Design Patterns Interview Question #77

What is Ubiquitous Language in DDD?

DDD Boundaries, Resilience, Caching & Practical ASP.NET Core Design Mid-Level Intermediate

Quick Interview Answer

Ubiquitous Language is a shared vocabulary used by developers and domain experts to describe the business model. The same terminology should appear in conversations, requirements, code, tests, and documentation within a bounded context.

Detailed Explanation

Ubiquitous Language is a shared vocabulary used by developers and domain experts to describe the business model. The same terminology should appear in conversations, requirements, code, tests, and documentation within a bounded context.

Using business terms directly in code reduces translation errors. Ambiguous generic names such as Manager or Processor should be replaced by precise domain language where possible.

Code Example

// Prefer domain language:
order.Confirm();
invoice.MarkAsPaid();
claim.Reject(reason);

// Instead of vague operations:
service.Process();
manager.Handle();