Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 958484

Pages: 1
Anonymous
Unregistered




The Builder Pattern
      #1962 - 09/15/03 07:46 AM

How can we take advantage of the Builder creational pattern without accessing an object's state data after instantiation?

If we follow the paradigm presented in the article, creation of complex objects cannot be achieved by constuctors alone because that would involve large data transfers. Instead, the creation process itself must be limited to specific messages sent by other objects to a creational pattern object.

It is difficult to find a solution in the article to the challanges of complex object creation in the absence of information access methods.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Allen Holub
Unregistered




Patterns are evil... [Re: Anonymous]
      #1966 - 09/15/03 10:48 AM

... if they mean that objects must access any data outside themselves. This means that the Builder pattern is evil. As a matter of fact, the only pattern I've found that isn't evil is the Singleton pattern, and... actually, that one's evil too.

You will have much success in your career if you just follow the guidelines set forth in the article. Using the many strategies and techniques I've outlined, you'll soon be writing monolithic but successfully object-oriented systems in a jiffy.

-AIH


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 0 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 4338

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5