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.
Procedural vs OOP
Started by John, Aug 15 2007 12:23 PM
5 replies to this topic
#1
Posted 15 August 2007 - 12:23 PM
|
|
|
#2
Posted 15 August 2007 - 02:59 PM
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
Posted 15 August 2007 - 04:57 PM
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.
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_*
Posted 15 August 2007 - 05:13 PM
Guest_Jordan_*
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
Posted 15 August 2007 - 08:50 PM
I can only agree with the two previous posts.
#6
Posted 16 August 2007 - 08:07 AM
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.


Sign In
Create Account

Back to top










