Welcome to EMC Consulting Blogs Sign in | Join | Help

Browse by Tags

All Tags » c# » Factory Pattern
  • Don’t Mix Object Creation with Business Logic

    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 ...
    Posted to Owain Wraggs' Blog (Weblog) by Owain.Wragg on March 27, 2009
Powered by Community Server (Personal Edition), by Telligent Systems