Skip to Content
Domain-Driven Transformation
book

Domain-Driven Transformation

by Carola Lilienthal, Henning Schwentner
November 2025
Intermediate to advanced
464 pages
11h 25m
English
O'Reilly Media, Inc.
Book available
Content preview from Domain-Driven Transformation

Appendix E. Tactical Refactorings That Strengthen Domain Knowledge

Code that makes it hard to understand for what purpose it was built also makes it hard to maintain. Therefore we want our code to clearly express the concepts of the domain it is built for. The refactorings in this appendix are meant to help you transform muddy code into crisply expressed concepts that make it easy for the reading programmer to understand and change them.

To achieve this beautiful and behavior rich domain model, different actions can be taken:

These refactorings usually take place before or after tactical refactorings to support the strategic refactorings that are carried out.

Enforce Ubiquitous Language

Diagram illustrating a data flow from a "Ctx" context with methods to a "Contract" entity, highlighting the relationship between data tables labeled "CTXHEAD" and "Contracts."

Motivation

Whenever the code uses bad names, obscure technical names, strange abbreviations, or names that do not reflect your current understanding of the domain, change them accordingly. This is part of DDD’s ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

LLMOps

LLMOps

Abi Aryan
Domain-Driven Refactoring

Domain-Driven Refactoring

Alessandro Colla, Alberto Acerbis

Publisher Resources

ISBN: 9798341640108Errata Page