Alex Rivera | Logout

How relevant are OO design patterns to web development in PHP?

Asked 2010-03-10T03:01:00.747
9

Singleton, Decorator, Abstract, Factory, and the list goes on. How relevant are OO design patterns in developing PHP applications for the web? Does it do anything for performance? Or is it just to keep code lean for agile development practices? Who is the major benefactor for implementing these design patterns? Is it the customer or the developer?

I realize I am asking multiple questions, but they all relate to the same topic. I am not certain there is a necessity for OO design patterns with a scripting language since it is compiled at run time. What do you all think? Is it important?

Edit
Report

1 Answer

0

What algorithms (like quicksort) are to procedural programming, design patterns are to object oriented design. They are proven way to slove some common problems.

Main beneficator is a devolper - but as a side effect a customer will probably obtain better final product.

Whenever they are relevant or not, depends on the certain application requirements and approach you have choosed. It may sound laconic, but when you start to analyse your application and compare its design requirements with existing patterns you will know how and when to use them.

answered 2010-03-10T03:20:24.747

Your Answer