Hello All,
Well, gearing up for a fairly complex job, I was wondering... at what point do Design Patterns become almost necessary. Im talking about the Front Controller, Command, etc.
At what point to DP become useful?
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
They're never necessary. But a lot of them have been brought about because of the repeated implementation in solving a particular problem. They usually go through a lot of refactoring until they become fairly elegant solutions that are often highly modular in nature. Even if you never look at a design pattern you will likely build several during development of applications. So I say stand on the shoulders of the giants who came before you.
Off topic: when I saw DP, for some reason Dr. Pepper flashed into my head.
-- damn pop culture.
Off topic: when I saw DP, for some reason Dr. Pepper flashed into my head.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: At what point to DP become useful?
Given that patterns are Best Practices, you are probably using them currently -- whether you know it or not. So a question might be "how good is your implemetation?"LiveFree wrote:Well, gearing up for a fairly complex job, I was wondering... at what point do Design Patterns become almost necessary. Im talking about the Front Controller, Command, etc.
The other part about Design Patterns is that they are a common language with which to discuss programming. So if you post the quesion "I would like my Front Controller to do X" then people can get straight to heart of the question quickly. If you say "I have an index.php that kinda sorta does this and that and I want to do X" then people have to ask you question until you are talking the same language.
I am interested though, because what I think you are really talking about is using a controller architecture (not patterns per se), what are the reasons that are keeping you from moving to use a Front Controller, for example?
(#10850)