Re: RE: How to generally decide between FACTORY and constructor?

Raoul Duke <[email protected]>
Newsgroups gmane.comp.programming.domain-driven-design
Message-ID <CAJ7XQb617oJKVPddFPWj+cDWFAEGWvkPDYiU4CgEUQnAqObErA@mail.gmail.com>
> 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.

i kinda wish there were a language that was like: sorry you cannot
have constructors, you can only have factories, to force us all to
factor the creation stuff out from the get-go. now, what *kind* of
factories is another thing, but at least we'd not have yukky
constructor stuff. :-)


------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/domaindrivendesign/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/domaindrivendesign/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo Groups is subject to:
    http://info.yahoo.com/legal/us/yahoo/utos/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.