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 6889631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:10:50+00:00 2026-05-27T06:10:50+00:00

I know there are countless questions about the difference between OOP and procedural, when

  • 0

I know there are countless questions about the difference between OOP and procedural, when to use either and whether the benefits outweigh the extra overhead, learning the syntax, inheritance confusion, etc. Most of what I’ve found tends to just discuss differences and benefits and not whether its necessary.

I generally mix OOP and procedural within the same sites scripts depending on what I’m doing. I’m still fairly new to OOP and actually quite like the modular nature of OOP and the benefits it gives, even if there’s a minor overhead. Inheritance can get a little confusing at times though!

To me the major benefits only seem to be in better organisation and protection of the code. Of which, the developer or team of developers are the only people to appreciate it. I guess there’s a case for deployment speed but wouldn’t say there’s a lot in it for most sites unless you’ve inherited someone else’s birdsnest 🙂

Is OOP necessary in most PHP apps though, especially when execution speed is the holy grail for most sites? ok, so the milliseconds overhead won’t really notice unless a heavy use site but as a fan of electronic music speed is king!

I get using OOP in complex things like gaming and real-time cloud software, but static websites? even database heavy ones?

Does anyone have real world examples of typical sites that benefit from OOP and why?

Assuming both cases are well structured, would heavy use sites like ebay or monster.co.uk benefit more from OOP or the speed improvement of procedural ()? and why?

At least with procedural you can debug from the top down without having to bounce around the script to check classes and extensions and interfaces.

Can’t I just apply OOP modular thinking with clear MVC and well commented code?

For example, I keep re-usable functions in include files and group related functions together. All I have to do is include the file like I would a class file and call up the functions. If the function needs to change, it gets changed in just one place, similar to a class.

And a kind of inheritance already exists in procedural without having to jump through hoops to declare it. You don’t have the same level of control but it gets the job done nice and quick.

You could even simulate a class by grouping functions within a parent function and use a selector function to access them. That’s taking it a bit far though!

Also, as far as I’m aware when a function is called it stays in memory making subsequent uses quicker. Whereas with OOP you would have to create two objects of the various methods to use the same function for two different variables. Correct me if I’m wrong.

Why create an object and use a method to ‘get’ a value when I could just reference the value directly with procedural?

well done for getting this far, hadn’t realised I’d typed so much. Anyway, before I digress any further I’m going to end it here.

So if you’ve got any good examples of actual sites or parts of sites that benefit from either OOP or procedural I would really appreciate the clarity.

  • 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-27T06:10:51+00:00Added an answer on May 27, 2026 at 6:10 am

    People managed to write good, clear, well organized code long before OO languages became popular. I see no reason why it can’t still be done now.

    Generally OO principles make it easier (which is one reason why OO is so popular) but they are by no means a necessity.

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

Sidebar

Related Questions

I know there are many other questions similar to this one, but none of
I have read countless blogs, posts and StackOverflow questions about the new features of
I know there are quite a few questions concerning access violations, but I have
I know there is a registry key indicating the install directory, but I don't
I know there are a lot of positive things mod-rewrite accomplishes. But are there
I know there are quite a few line count tools around. Is there something
I know there have been a few threads on this before, but I have
I know there is a way to add a IE control, how do you
I know there is a function somewhere that will accept a client rect and
I know there's some JAVA_OPTS to set to remotely debug a Java program. What

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.