Technical Debt
Five pages each have a copy of the button style, and one was missed during a color change. What does that show?
Five pages each have a copy of the button style, and one was missed during a color change. What does that show?
| Home | Log in |
| Pricing | Log in |
| Blog | Log in |
| Docs | Log in |
| App | Log in |
Example: the same button style lives in five files. Updating its color means finding and changing each copy.
Before: five files keep separate copies: Changing the button color means finding five definitions; miss Docs and its button stays gray.
The change: a shared component: Following the project's existing structure, put the button style in one shared component and let all five pages use it.
Feedback and boundary: Reopen all five pages and confirm the buttons are blue without changing other page behavior. Whether to consolidate more depends on the actual maintenance burden; not every repeated line needs rewriting.
In this example, the same login-button style is repeated on five pages and Docs was missed. Follow the project's existing structure to move it into a shared component, then check each page for blue buttons and unexpected changes. Tell me where to edit the style next time.