Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 646379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:36:19+00:00 2026-05-13T21:36:19+00:00

Singleton, Decorator, Abstract, Factory, and the list goes on. How relevant are OO design

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:36:19+00:00Added an answer on May 13, 2026 at 9:36 pm

    Design patterns are created to solve specific problems. These problems occur whether you use PHP or any other language (though the patterns may differ by language as well). Most of the patterns have their roots in object-oriented design, but can be adapted to procedural settings. Use the design pattern when you have a problem that the pattern addresses, whether PHP or any other language. Don’t use a design pattern just because it’s a “design pattern” — know how and when it applies and when it doesn’t.

    Having said that, much of what design patterns do, is organize code to accomplish their purpose in a clean, understandable way. There are other ways to solve the problem, but the design pattern is a well-recognized, clear, and understandable method. If you do need to solve a problem addressed by a particular pattern, you would usually be best off using the pattern (or adapting the pattern) rather than choosing an alternative.

    Using patterns, where appropriate, is thus beneficial to both current and future developers — cleaner, better understood code — and the customer — less time reinventing the wheel, more robust, maintainable code. Using patterns when they aren’t appropriate benefits no one; it’s potentially an exercise in frustration trying to adapt a pattern to solve an unrelated problem and more than likely will simply make things more complicated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there are lots of design patterns (facade, singleton, decorator, etc...) but I'm
i has singleton class with final static method getInstance(): <?php abstract class Singleton {
In this answer a singleton decorator is demonstrated as such def singleton(cls): instances =
I have the following Singleton Class in PHP. class CounterBalance{ private static $instance; private
Does singleton/session scopes of Spring beans require that access to all its fields must
The singleton pattern is a design pattern that is used to restrict instantiation of
The singleton pattern is a fully paid up member of the GoF 's patterns
The Singleton and the Registry patterns were very simple and easy for me to
Is singleton a design pattern or a design antipattern? From here http://neugierig.org/software/chromium/notes/ , it
I have an abstract Singleton class. My goal is that any subclasses just have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.