Jump to content

Procedural vs OOP

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I don't think we have one of these, and a forum cant be considered a programming forum without a lengthy discussion on the two types of coding styles.

So lets hear, in your opinion, which is better and why.

#2
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
I think that OOP is better because you can reuse code, it is more legible and easier to coordinate among a group of developers. What about you, what do you like?

#3
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
Honestly, it depends on what I need to do In my experience, OOP is considerably slower than procedural, so on small projects [ > 1000 lines ] I would use procedural, but when working on a large project with a group I will use OOP as it is easier to understand and use. Moreover using [good] OOP makes it much easier to implement design patterns which make managing everything a whole lot easier.

I've yet to make up my mind as to which I can stand firmly by as both have their setbacks, but as I become better at OOP I will probably become an OOP freak.

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I like OOP. Classes can be made and reused in other projects. This comes in handy with functions that you use often. I'm a big fan of OOP though so I'm a little bias but I have to agree, for projects < 1000 lines I like procedural.

#5
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
I can only agree with the two previous posts.

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I have yet to see OOP that didn't use procedural code to implement the individual functions. That said, I would say it depends on the problem. For some problems, OOP seems to correspond to how I think about the problem. For others, procedural is how I'm thinking. For example: A game tends to be more OOP, while a program to do statistical computations tends to be more procedural.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog