Click here to Skip to main content
15,900,433 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Dynamically filling dropdown values or manually Pin
anjelone25-Aug-10 9:07
anjelone25-Aug-10 9:07 
GeneralRe: Dynamically filling dropdown values or manually Pin
Pete O'Hanlon5-Aug-10 12:07
mvePete O'Hanlon5-Aug-10 12:07 
GeneralRe: Dynamically filling dropdown values or manually Pin
Eddy Vluggen6-Aug-10 4:29
professionalEddy Vluggen6-Aug-10 4:29 
GeneralRe: Dynamically filling dropdown values or manually Pin
Keith Barrow25-Sep-10 0:20
professionalKeith Barrow25-Sep-10 0:20 
GeneralRe: Dynamically filling dropdown values or manually Pin
PIEBALDconsult24-Sep-10 21:57
mvePIEBALDconsult24-Sep-10 21:57 
QuestionEnterprise Applications Pin
Ali el2-Aug-10 1:34
Ali el2-Aug-10 1:34 
AnswerRe: Enterprise Applications Pin
Pete O'Hanlon2-Aug-10 2:11
mvePete O'Hanlon2-Aug-10 2:11 
Questionhow to comprehend the definition of Bridge pattern by Gof? Pin
zxjun8422-Jul-10 18:56
zxjun8422-Jul-10 18:56 
1.There is an object varying for two dimensionality which change commonly.we can decouple the two dimensionality ,so they can vary indepently and not mutually affect.For example ,when we want to draw a picture through pen.Pen may have different size like big pen or small pen.It also has different color like red or green.Apperently the pen as an object used to draw will vary through different matching of size and color.Now,we can utilize a "bridge" to connect the CSize class and CColor class.is it that?

1   abstract class Brush<br />
2     {<br />
3         protected Color c;<br />
4         public abstract void Paint();<br />
5 <br />
6         public void SetColor(Color c)<br />
7         { this.c = c; }<br />
8     }<br />
<br />
1   class BigBrush : Brush<br />
2     {<br />
3         public override void Paint()<br />
4         { Console.WriteLine("Using big brush and color {0} painting", c.color); }<br />
5     }<br />
1   class SmallBrush : Brush<br />
2     {<br />
3         public override void Paint()<br />
4         { Console.WriteLine("Using small brush and color {0} painting", c.color); }<br />
5     }<br />
1   class Color<br />
2     {<br />
3         public string color;<br />
4     }<br />
1 class Red : Color<br />
2     {<br />
3         public Red()<br />
4         { this.color = "red"; }<br />
5     }<br />
1    class Green : Color<br />
2     {<br />
3         public Green()<br />
4         { this.color = "green"; }<br />
5     }<br />
1   class Blue : Color<br />
2     {<br />
3         public Blue()<br />
4         { this.color = "blue"; }<br />
5     }<br />
 1     class Program<br />
 2     {<br />
 3    public static void Main()<br />
 4   {<br />
 5     Brush b = new BigBrush();<br />
 6     b.SetColor(new Red());<br />
 7     b.Paint();<br />
 8     b.SetColor(new Blue());<br />
 9     b.Paint();<br />
10     b.SetColor(new Green());<br />
11     b.Paint();<br />
12 <br />
13     b = new SmallBrush();<br />
14     b.SetColor(new Red());<br />
15     b.Paint();<br />
16     b.SetColor(new Blue());<br />
17     b.Paint();<br />
18     b.SetColor(new Green());<br />
19     b.Paint();<br />
20   }<br />
<br />
2.Gof defines the bridge pattern as Decouple an abstraction from its implementation so that the two can vary independently.<br />
<br />
question:<br />
According to item 1 ,how to comprehend the definition of Bridge pattern by Gof ?Especially, what does the "abstraction" and "implementation " Gof stand for?

QuestionSimple UML Question Pin
Nadunwow29-Jun-10 8:18
Nadunwow29-Jun-10 8:18 
AnswerRe: Simple UML Question Pin
Richard MacCutchan29-Jun-10 9:17
mveRichard MacCutchan29-Jun-10 9:17 
GeneralRe: Simple UML Question Pin
Nadunwow2-Jul-10 7:11
Nadunwow2-Jul-10 7:11 
AnswerRe: Simple UML Question Pin
Sameerkumar Namdeo16-Aug-10 0:10
Sameerkumar Namdeo16-Aug-10 0:10 
QuestionBuilding troubleshooting application Pin
sumit703428-Jun-10 20:53
sumit703428-Jun-10 20:53 
AnswerRe: Building troubleshooting application Pin
Mycroft Holmes23-Jul-10 14:07
professionalMycroft Holmes23-Jul-10 14:07 
QuestionData Modeling Tools Pin
Brendan Vogt17-Jun-10 3:13
Brendan Vogt17-Jun-10 3:13 
AnswerRe: Data Modeling Tools Pin
Pete O'Hanlon17-Jun-10 4:47
mvePete O'Hanlon17-Jun-10 4:47 
AnswerRe: Data Modeling Tools Pin
muthoot26-Jul-10 1:42
muthoot26-Jul-10 1:42 
QuestionIntegrating Different WebApplications under one umbrella [modified] Pin
meeram3952-Jun-10 1:24
meeram3952-Jun-10 1:24 
NewsWindows Azure Guidance patterns & practices RC released Pin
pSorvik27-May-10 7:09
pSorvik27-May-10 7:09 
QuestionDesign issue [modified] Pin
Ted On The Net27-May-10 1:28
Ted On The Net27-May-10 1:28 
AnswerRe: Design issue Pin
George B Gilbert29-May-10 10:37
George B Gilbert29-May-10 10:37 
QuestionIs my n-tier design OK? Pin
User 274316226-May-10 21:40
User 274316226-May-10 21:40 
AnswerRe: Is my n-tier design OK? Pin
Mycroft Holmes29-May-10 13:39
professionalMycroft Holmes29-May-10 13:39 
GeneralRe: Is my n-tier design OK? Pin
User 274316230-May-10 7:25
User 274316230-May-10 7:25 
QuestionQueue Processing (Database structure) Pin
David Hovey19-May-10 18:21
David Hovey19-May-10 18:21 

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.