Smells of Making: new Everywhere

When the code that uses an object also builds it (new scattered through business code, a constructor with nine arguments, a class that opens its own database connection), every change to how things are made touches the code that uses them, and nothing can be tested on its own; the cures give making its own home.

By

Updated

Cheat sheet: Smells of Making: new Everywhere
Category
Data Structures
Level
Journeyman
Tags
Builder Pattern, Dependency Injection, Hidden Dependency, Long Parameter List, OOP, software-development