Vlad's Roam Garden

Powered by 🌱Roam Garden

When you notice that a group of values are always used together

This may serve as a suggestion that there’s a missing construct.

A first step might be to create a new type with fixed public fields — just giving the group a name highlights the missing concept. Later we can migrate behavior to the new type, which might eventually allow us to hide its fields behind a cleaninterface, satisfying the “composite simpler than the sum of its parts” rule.

Growing Object Oriented Software guided by Tests p58