Re: RE: How to generally decide between FACTORY and constructor?
Mirko Sertic <[email protected]>
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <[email protected]> |
From my point of view, constructors should be dead simple. As soon as they do more than just initializing members, it is time to apply some kind of creational pattern like a dedicated factory. Regards Mirko Am 14.02.2014 19:56, schrieb [email protected]: > > There's a choice between factory method, static class factory method, > an explicit factory instance, abstract factory, ... choose wisely. > >