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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:33:12+00:00 2026-05-12T20:33:12+00:00

I find myself always trying to fit everything into the OOP methodology, when I’m

  • 0

I find myself always trying to fit everything into the OOP methodology, when I’m coding in C/C++. But I realize that I don’t always have to force everything into this mold. What are some pros/cons for using the OOP methodology versus not? I’m more interested in the pros/cons of NOT using OOP (for example, are there optimization benefits to not using OOP?). Thanks, let me know.

  • 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-12T20:33:12+00:00Added an answer on May 12, 2026 at 8:33 pm

    Of course it’s very easy to explain a million reasons why OOP is a good thing. These include: design patterns, abstraction, encapsulation, modularity, polymorphism, and inheritance.


    When not to use OOP:

    • Putting square pegs in round holes: Don’t wrap everything in classes when they don’t need to be. Sometimes there is no need and the extra overhead just makes your code slower and more complex.
    • Object state can get very complex: There is a really good quote from Joe Armstrong who invented Erlang:

    The problem with object-oriented
    languages is they’ve got all this
    implicit environment that they carry
    around with them. You wanted a banana
    but what you got was a gorilla holding
    the banana and the entire jungle.

    • Your code is already not OOP: It’s not worth porting your code if your old code is not OOP. There is a quote from Richard Stallman in 1995

    Adding OOP to Emacs is not clearly an
    improvement; I used OOP when working
    on the Lisp Machine window systems,
    and I disagree with the usual view
    that it is a superior way to program.

    • Portability with C: You may need to export a set of functions to C. Although you can simulate OOP in C by making a struct and a set of functions who’s first parameter takes a pointer to that struct, it isn’t always natural.

    You may find more reasons in this paper entitled Bad Engineering Properties
    of Object-Oriented Languages
    .

    Wikipedia’s Object Oriented Programming page also discusses some pros and cons.

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

Sidebar

Related Questions

This is likely a stupid question but I always find myself wondering which is
ROR scaffold is useful, but I always find myself removing the respond_to part in
I find myself frequently outputting PHP Array data into AS3 applications and I'm always
I always find myself close to useless without my laptop. It has all the
I don't use DataSets much. Usually find myself using an ORM or just a
I always find myself needing to enclose a block of code in curly braces
Once in a while, I find myself rounding some numbers, and I always have
I find myself using jQuery objects with regular js objects often; I'm trying to
When I am developing in jQuery, I frequently find myself typing selectors into the
For months now I've been trying to find a code syntax formatting extension that

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.