|
Ive used a couple of the GoF pattens in my applications as well as read articles and books on them, i however want to find out from the rest of you guys where you used the patterns before?
So, if you could list examples or short descriptions where you have used the various Behavioral, Creational and Structural patterns in real production applications that would be awesome!
|
|
|
|
|
This sounds incredibly like an attempt to get homework answered. By the way, you don't have to enclose none code snippets in the pre tags. It just looks odd.
|
|
|
|
|
He copied and pasted from the QA forum, and the site auto coded it. You see it in QA a lot where people ask every forum they can think of the same question.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Apologies for posting same thing in two places.
Christian mentioned that it would be better fitted in the lounge, thus me posting this general question here...
To be honest, I thougt it would make for a good discussion to see where people actually use te paterns in real business applications and their experience with it, but after reading some replies from the others i take it i am wrong.
Thanks anyway
|
|
|
|
|
You use them wherever you think it appropriate to do so without slavishly adhering to the hype where you come to expect a 'design pattern' to solve every problem. They don't.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Allow me to add this: Also don't adhere to any pattern itself. Feel free to modify it if you see the need to do so. There is no single right way to do anything.
|
|
|
|
|
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
This sounds like homework. Just use google.
|
|
|
|
|
To my knowledge, I only deliberately used 1 or 2 in 20 years+ (mostly the ubiquitous Singleton).
I probably have used (abstract)factories, Builders, composite, observer and others without knowing they were actually patterns.
When designing code, one find itself doing a lot of things that have been named by others and are found to be "standard" in some form or others.
Good luck with your homework.
Nihil obstat
|
|
|
|
|
Sure you have, at least if you ever hooked up an event handler method to some event of a control. There you already have a pattern in use
|
|
|
|
|
|
what is google ?
Nihil obstat
|
|
|
|
|
Isn't if for Go Figure.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
(Then again, I should just use Google myself )
|
|
|
|
|
The people who wrote the classic Design Patterns book are referred to as the Gang of Four. It sounds gangster.
This is my fault, I told him in QA it sounded like a lounge discussion.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I always thought it sounded Communist.
|
|
|
|
|
Google Own F'ing homework pattern. It's applied throughout Q&A
|
|
|
|