You are previewing Domain-Driven Design: Tackling Complexity in the Heart of Software.

Domain-Driven Design: Tackling Complexity in the Heart of Software

Cover of Domain-Driven Design: Tackling Complexity in the Heart of Software by Eric Evans Published by Addison-Wesley Professional
O'Reilly logo

Fourteen. Maintaining Model Integrity

I once worked on a project where several teams were working in parallel on a major new system. One day, the team working on the customer-invoicing module was ready to implement an object they called Charge, when they discovered that another team had already built one. Diligently, they set out to reuse the existing object. They discovered it didn’t have an “expense code,” so they added one. It already had the “posted amount” attribute they needed. They had been planning to call it “amount due,” but—what’s in a name?—they changed it. Adding a few more methods and associations, they got something that looked like what they wanted, without disturbing what was there. They had to ignore many associations they didn’t ...

The best content for your career. Discover unlimited learning on demand for around $1/day.