|
|
Browse by Tags
All Tags » c# » Factory Pattern
-
I’ve come to the conclusion that mixing object creation logic (e.g. new statements) with business logic is a bad idea; this is because
A method should only be responsible for one thing (Single Responsibility Principle), either it creates things or performs logic on things not both.
Code littered with both creation logic and business logic ...
|
|
|