Objects by Design Forums Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Calendar Find other members Frequently Asked Questions Search Home  
Objects by Design Forums : Powered by vBulletin version 2.3.5 Objects by Design Forums > Main Forums > Object-Oriented Design and Patterns > How to use design pattern
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
jackzhang
Junior Member

Registered: Feb 2006
Location: San Jose
Posts: 1

How to use design pattern

Hi All,

I have read some books about design pattern in C++. but in my real work, I hardly find where should use it;

I almost use composition and simple inheritance in my design, it may be because my experience in C.

In one book, it mentions that when you meet case (), swith, and multiple choices, then there is a indice of some pattern application.


Does someone have experince and show me the light.


Thank You in advance

Report this post to a moderator | IP: Logged

Old Post 02-10-2006 06:33 PM
jackzhang is offline Click Here to See the Profile for jackzhang Click here to Send jackzhang a Private Message Find more posts by jackzhang Add jackzhang to your buddy list Edit/Delete Message Reply w/Quote
zitniet
Junior Member

Registered: Feb 2006
Location:
Posts: 1

Read this article.

http://www.codeproject.com/vb/net/R...003#xx1113753xx

Report this post to a moderator | IP: Logged

Old Post 03-02-2006 05:46 PM
zitniet is offline Click Here to See the Profile for zitniet Click here to Send zitniet a Private Message Find more posts by zitniet Add zitniet to your buddy list Edit/Delete Message Reply w/Quote
ssneig
Junior Member

Registered: Feb 2006
Location:
Posts: 4

Re: How to use design pattern

I dont know the exact answer to this question. But whenever I design/about to code, I consider the potential problems that my current code (or structure) may cause. if I see a problem then I'll look for a design pattern suitable to solve my problem/requirement.

Your perspective should be problem/requirement directing to design pattern. And as everybody know that we should not use it just because we have these design patterns.

But one thing you gotta keep in mind is "EXTENSIBILITY"

Hope it helps

Report this post to a moderator | IP: Logged

Old Post 03-06-2006 11:30 PM
ssneig is offline Click Here to See the Profile for ssneig Find more posts by ssneig Add ssneig to your buddy list Edit/Delete Message Reply w/Quote
Ku-Tse Cheng
Junior Member

Registered: May 2006
Location: Nanjing
Posts: 5

Let me suggest that you should find out the "best practice" of design patterns by yourself. When you encounter some problems, try to check up if design patterns help. The successful experience will gradually make you master it.

Report this post to a moderator | IP: Logged

Old Post 05-16-2006 02:30 AM
Ku-Tse Cheng is offline Click Here to See the Profile for Ku-Tse Cheng Click here to Send Ku-Tse Cheng a Private Message Find more posts by Ku-Tse Cheng Add Ku-Tse Cheng to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 05:25 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

< Contact Us - Objects by Design >

Powered by: vBulletin Version 2.3.5
Copyright ©2000 - 2018, Jelsoft Enterprises Limited.
Copyright 1999-2005, Objects by Design, Inc.