Click here to Skip to main content
15,903,385 members
Home / Discussions / C#
   

C#

 
AnswerRe: Running parallely single Application with two differnt versions Pin
leppie14-Jun-06 6:57
leppie14-Jun-06 6:57 
QuestionPaint Method C# Pin
reshsilk14-Jun-06 5:47
reshsilk14-Jun-06 5:47 
AnswerRe: Paint Method C# Pin
Alexander Wiseman14-Jun-06 6:43
Alexander Wiseman14-Jun-06 6:43 
GeneralRe: Paint Method C# Pin
reshsilk15-Jun-06 4:48
reshsilk15-Jun-06 4:48 
QuestionC# Design Patterns (Abstraction etc.) Pin
Mr. VB.NET14-Jun-06 5:38
Mr. VB.NET14-Jun-06 5:38 
AnswerRe: C# Design Patterns (Abstraction etc.) Pin
Kevin McFarlane14-Jun-06 5:51
Kevin McFarlane14-Jun-06 5:51 
GeneralRe: C# Design Patterns (Abstraction etc.) Pin
Mr. VB.NET14-Jun-06 6:08
Mr. VB.NET14-Jun-06 6:08 
GeneralRe: C# Design Patterns (Abstraction etc.) [modified] Pin
Josh Smith14-Jun-06 7:15
Josh Smith14-Jun-06 7:15 
Mr. VB.NET wrote:
Seems to me if you had a good UML tool you would be setting up good designs right away.


If only it were that straightforward! Big Grin | :-D (we'd all be out of jobs)

I find that design patterns are often used for the sake of being used. Some people see it as a quantifiable way of determining whether a design is "good" or not. This is, in my opinion, a grave mistake. In my experience, patterns are only useful if they solve a distinct problem. If they do not, they add unnecessary complexity to what could be a simple solution.

Now that I've ranted about when not to use patterns...

I typically use a pattern if I find myself trying to satisfy multiple related requirements, conflicting or not. For example, in the most recent system I designed I had the need for a general way of expressing a hierarchial relationship between various types of business objects. The hierarchies needed to be expressed in various configurations, and also needed to play nice with WinForms databinding. To satisfy all of these requirements, I chose to use the Composite pattern...and it worked out beautifully.

HTH,
Josh

-- modified at 13:29 Wednesday 14th June, 2006
GeneralRe: C# Design Patterns (Abstraction etc.) Pin
Mr. VB.NET14-Jun-06 10:56
Mr. VB.NET14-Jun-06 10:56 
GeneralRe: C# Design Patterns (Abstraction etc.) Pin
Kevin McFarlane14-Jun-06 23:19
Kevin McFarlane14-Jun-06 23:19 
AnswerRe: C# Design Patterns (Abstraction etc.) Pin
Kevin McFarlane14-Jun-06 6:02
Kevin McFarlane14-Jun-06 6:02 
QuestionInstaller Language settings [modified] Pin
Endren14-Jun-06 5:20
Endren14-Jun-06 5:20 
QuestionEvents, Threads & BindingSource Pin
iswoolley14-Jun-06 5:14
iswoolley14-Jun-06 5:14 
AnswerRe: Events, Threads & BindingSource Pin
Mr. VB.NET14-Jun-06 5:34
Mr. VB.NET14-Jun-06 5:34 
GeneralRe: Events, Threads & BindingSource Pin
iswoolley14-Jun-06 6:59
iswoolley14-Jun-06 6:59 
AnswerRe: Events, Threads & BindingSource Pin
Mr. VB.NET14-Jun-06 6:32
Mr. VB.NET14-Jun-06 6:32 
AnswerRe: Events, Threads & BindingSource Pin
Leslie Sanford14-Jun-06 10:20
Leslie Sanford14-Jun-06 10:20 
AnswerRe: Events, Threads & BindingSource Pin
iswoolley19-Jun-06 5:45
iswoolley19-Jun-06 5:45 
Questionwhich datatype will be appropriate for Ratio calculation in C# Pin
kumar.bs14-Jun-06 5:12
kumar.bs14-Jun-06 5:12 
AnswerRe: which datatype will be appropriate for Ratio calculation in C# Pin
User 665814-Jun-06 5:20
User 665814-Jun-06 5:20 
AnswerRe: which datatype will be appropriate for Ratio calculation in C# Pin
albCode14-Jun-06 5:21
albCode14-Jun-06 5:21 
GeneralRe: which datatype will be appropriate for Ratio calculation in C# Pin
MCSD-Gandalf14-Jun-06 5:50
MCSD-Gandalf14-Jun-06 5:50 
QuestionC++ -> C# VirtualAllocEx! Pin
suguimoto14-Jun-06 3:59
suguimoto14-Jun-06 3:59 
AnswerRe: C++ -> C# VirtualAllocEx! Pin
Josh Smith14-Jun-06 4:21
Josh Smith14-Jun-06 4:21 
GeneralRe: C++ -> C# VirtualAllocEx! Pin
suguimoto14-Jun-06 4:34
suguimoto14-Jun-06 4:34 

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.