Click here to Skip to main content
15,907,395 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Code portability - .NET/Unix Pin
led mike19-Nov-08 8:17
led mike19-Nov-08 8:17 
GeneralRe: Code portability - .NET/Unix Pin
Wendelius19-Nov-08 8:31
mentorWendelius19-Nov-08 8:31 
QuestionRe: Code portability - .NET/Unix Pin
vsyam19-Nov-08 8:46
vsyam19-Nov-08 8:46 
RantRe: Code portability - .NET/Unix Pin
vsyam19-Nov-08 9:00
vsyam19-Nov-08 9:00 
GeneralRe: Code portability - .NET/Unix Pin
Wendelius19-Nov-08 9:14
mentorWendelius19-Nov-08 9:14 
AnswerRe: Code portability - .NET/Unix Pin
Wendelius19-Nov-08 9:05
mentorWendelius19-Nov-08 9:05 
Questionone questions about Builder Pattern Pin
Ahmed R El Bohoty18-Nov-08 17:12
Ahmed R El Bohoty18-Nov-08 17:12 
AnswerRe: one questions about Builder Pattern Pin
CodingYoshi18-Nov-08 18:23
CodingYoshi18-Nov-08 18:23 
Builder pattern consists of 4 parts:

1. Builder-This is an abstract class
2. ConcreteBuilder
3. Director-This is the site where the construction occurs by calling the ConcreteBuilder
4. Product-This is the thing being built

public class Demo
{
public static void main(String args[])
{

Builder b = new ConcreteBuilder1();
Director d = new Director();
d.construct(b); // We tell director to construct a product using b as the builder and director
// will call the appropriate methods on b. We do not need to know how the director
// will do this, we assume the director knows this.
Product aProduct = b.GetProduct(); // Now we ask b to give us the built product

b = new ConcreteBuilder2();
d = new Director();
d.construct(b);
Product anotherProduct = b.GetProduct());
}
}

Therefore, you need the product class because after all you are after the built product at the end.

It is like going to a construction site and taking a builder with you. You ask the person in charge at the construction site (Director) to construct a house for you using the builder you introduced to the person in charge. The person in charge should know the sequence and what parts are needed to build a house but does not know how to build it. He simply asks the builder to build the parts. The builder now has a complete house. To see the completed house, you ask the builder for the house. I personally think we should ask the Director for the finished product as well and the director should ask the appropriate builder, but for some reason that is not the case.
QuestionWorkflow Services Pin
Mycroft Holmes17-Nov-08 14:33
professionalMycroft Holmes17-Nov-08 14:33 
QuestionLoading objects Pin
CodingYoshi15-Nov-08 8:01
CodingYoshi15-Nov-08 8:01 
AnswerRe: Loading objects Pin
led mike17-Nov-08 5:06
led mike17-Nov-08 5:06 
GeneralRe: Loading objects Pin
CodingYoshi18-Nov-08 8:26
CodingYoshi18-Nov-08 8:26 
QuestionRe: Loading objects Pin
led mike18-Nov-08 8:28
led mike18-Nov-08 8:28 
AnswerRe: Loading objects Pin
CodingYoshi18-Nov-08 18:56
CodingYoshi18-Nov-08 18:56 
Questiondesigning a good way enable/disable controls [modified] Pin
giddy_guitarist12-Nov-08 15:18
giddy_guitarist12-Nov-08 15:18 
AnswerRe: designing a good way enable/disable controls Pin
Pete O'Hanlon12-Nov-08 22:30
mvePete O'Hanlon12-Nov-08 22:30 
AnswerRe: designing a good way enable/disable controls Pin
Giorgi Dalakishvili13-Nov-08 0:46
mentorGiorgi Dalakishvili13-Nov-08 0:46 
GeneralRe: designing a good way enable/disable controls Pin
giddy_guitarist13-Nov-08 4:39
giddy_guitarist13-Nov-08 4:39 
GeneralRe: designing a good way enable/disable controls Pin
Ray Cassick14-Nov-08 9:56
Ray Cassick14-Nov-08 9:56 
AnswerRe: designing a good way enable/disable controls Pin
Jani Giannoudis15-Nov-08 5:32
mvaJani Giannoudis15-Nov-08 5:32 
GeneralRe: designing a good way enable/disable controls Pin
Mycroft Holmes15-Nov-08 23:31
professionalMycroft Holmes15-Nov-08 23:31 
AnswerRe: designing a good way enable/disable controls Pin
CodingYoshi15-Nov-08 7:38
CodingYoshi15-Nov-08 7:38 
GeneralRe: designing a good way enable/disable controls Pin
giddy_guitarist15-Nov-08 19:27
giddy_guitarist15-Nov-08 19:27 
GeneralRe: designing a good way enable/disable controls Pin
CodingYoshi15-Nov-08 22:12
CodingYoshi15-Nov-08 22:12 
GeneralRe: designing a good way enable/disable controls Pin
giddy_guitarist15-Nov-08 22:25
giddy_guitarist15-Nov-08 22:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.