View Poll Results: Which do you prefer?

Voters
24. You may not vote on this poll
  • Object Oriented Programming

    20 83.33%
  • Procedural

    1 4.17%
  • Spaghetti Code!

    3 12.50%
Closed Thread
Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 39

Thread: OOP vs Procedural

  1. #11
    zeroradius's Avatar
    zeroradius is offline Speaks fluent binary
    Join Date
    Feb 2008
    Location
    Ohio
    Posts
    1,403
    Rep Power
    25

    Re: OOP vs Procedural

    I do procedreal and than use includes so that I can reuse the procedral code. I never took the time to learn OOP and procedral works just fine for me so I will stick with that until i get a job and they fource me into OOP

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #12
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: OOP vs Procedural

    Why is it that people assume OOP = reusable, but procedural = forced recode?
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #13
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: OOP vs Procedural

    I dunno. C libraries worked fine for years.

  5. #14
    PythonPower's Avatar
    PythonPower is offline Programming Professional
    Join Date
    Feb 2009
    Posts
    228
    Rep Power
    13

    Re: OOP vs Procedural

    Quote Originally Posted by WingedPanther View Post
    Why is it that people assume OOP = reusable, but procedural = forced recode?
    OOP is imperative programming with tools for extension. Inheritance let's one define new classes that have all the old properties and methods, with new ones. Polymorphism lets one act on objects without knowledge of their type. Et cetera...

    Procedural programming can do all of the above without much effort but often things are coded in a way that they can't be used trivially again, in another program.

    If anything, OOP is more a way of thinking about things.

  6. #15
    Angelena is offline Banned
    Join Date
    Jun 2009
    Posts
    11
    Rep Power
    0

    Re: OOP vs Procedural

    Hey,
    to be very honest, i prefer Oop.

  7. #16
    zeroradius's Avatar
    zeroradius is offline Speaks fluent binary
    Join Date
    Feb 2008
    Location
    Ohio
    Posts
    1,403
    Rep Power
    25

    Re: OOP vs Procedural

    Quote Originally Posted by PythonPower View Post

    Procedural programming can do all of the above without much effort but often things are coded in a way that they can't be used trivially again, in another program.
    Depends on the programmer who wrote the code. I do all my code so that all you have to do is change the page that it posts to , to the new page that is including the module.

  8. #17
    cdg10620's Avatar
    cdg10620 is offline Programming Expert
    Join Date
    Jun 2009
    Location
    Texas
    Posts
    387
    Blog Entries
    3
    Rep Power
    12

    Re: OOP vs Procedural

    Quote Originally Posted by WingedPanther View Post
    Why is it that people assume OOP = reusable, but procedural = forced recode?
    I did not mean to imply that procedural means that you have to reuse code. It's just that OOP makes code reuse much simpler.
    -CDG10620
    Software Developer

  9. #18
    smith is offline Programmer
    Join Date
    Jun 2006
    Posts
    153
    Rep Power
    0

    Re: OOP vs Procedural

    OOP. Procedural code leads to spaghetti code no matter how you slice it.
    Code:
    for (int i;;) {
       cout << "Smith";
    }

  10. #19
    PythonPower's Avatar
    PythonPower is offline Programming Professional
    Join Date
    Feb 2009
    Posts
    228
    Rep Power
    13

    Re: OOP vs Procedural

    Quote Originally Posted by smith View Post
    Procedural code leads to spaghetti code no matter how you slice it.
    Can you expand on that assertion, please?

    In fact, you can't. Since many purely procedural languages have only structured constructs (no gotos, jumps, exceptions, threads, etc...) and they are Turing-complete. Being Turing-complete guarantees that they can construct an interpreter for any other Turing-complete language - even OOP languages.

    OOP is all about reuse - it doesn't change structure much.

  11. #20
    smith is offline Programmer
    Join Date
    Jun 2006
    Posts
    153
    Rep Power
    0

    Re: OOP vs Procedural

    I should probably reword my statement: "When I write in procedural code it turns into spaghetti code, no matter how I slice it".
    Code:
    for (int i;;) {
       cout << "Smith";
    }

Closed Thread
Page 2 of 4 FirstFirst 1234 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. OOP, procedural programming, etc.
    By jackson6612 in forum C and C++
    Replies: 2
    Last Post: 09-21-2011, 06:13 PM
  2. OOP VS procedural
    By encio in forum Java Help
    Replies: 11
    Last Post: 04-09-2010, 02:17 AM
  3. Which Procedural Language should I use?
    By encio in forum General Programming
    Replies: 1
    Last Post: 04-07-2010, 08:12 AM
  4. In your opinion, is OOP better than procedural programming?
    By DarkLordoftheMonkeys in forum General Programming
    Replies: 6
    Last Post: 11-09-2009, 12:55 AM
  5. Procedural vs OOP
    By John in forum General Programming
    Replies: 5
    Last Post: 08-16-2007, 09:07 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts