| View previous topic :: View next topic |
| Author |
Message |
Angrychile Apprentice


Joined: 27 Oct 2009 Posts: 204
|
Posted: Sat Aug 14, 2010 11:48 pm Post subject: Basic Programming Question: Advantages of OOP? |
|
|
It's not that I don't understand the OOP paradigm or anything, in fact, I've heard of it's benefits, such as abstraction leading to stability, inheritance reducing reinvention-of-the wheel, etc. But for those with more experience than me, does it weigh well against it's disadvantages? Such as being slower (sometimes) or being too sophisticated when simplicity would work(such as developing a number of abstract classes for different functionality in good OOP practice verses just implementing a module without break it up).
PS: for the last example, it is good for larger programs. But with the philosophy behind OOP uplifting generic programming, it probably doesn't work well with small programs. |
|
| Back to top |
|
 |
doubleagent Guru


Joined: 15 Apr 2005 Posts: 444 Location: 127.0.0.1
|
Posted: Sun Aug 15, 2010 12:13 am Post subject: |
|
|
Do what works and makes most sense to you. Try out various paradigms and gauge how accurate you feel the criticism is. _________________
| shickapooka wrote: | | i think they programmed [otw] based on a right-wing jewish-nigger-nazi, his gay, retarded, left-wing love slave with webbed feet, and their three headed cat that poops uncontrollably. the cat is also an apple fanboy |
|
|
| Back to top |
|
 |
Angrychile Apprentice


Joined: 27 Oct 2009 Posts: 204
|
Posted: Sun Aug 15, 2010 12:16 am Post subject: |
|
|
Again, I don't feel too confused by object oriented programming. I'm actually a visual person at times, believe it or not, so I can sort of see where it's nice as a more "visual" way of programming.
Anyhow, my main question was whether it meets it's disadvantages well. |
|
| Back to top |
|
 |
Genone Retired Dev


Joined: 14 Mar 2003 Posts: 8657 Location: beyond the rim
|
Posted: Sun Aug 15, 2010 1:32 am Post subject: |
|
|
| It really depends on what you're doing. Some projects are more suited for OOP than others, e.g. GUI apps really benefit from OOP (as it resembles the visual appearance, OTOH for smaller data-processing projects I'd probably avoid the complexity. But that's really a case-by-case decision, and of course the whole subject of programming languages, styles and architectures is very subjective as people have different ways of thinking. |
|
| Back to top |
|
 |
doubleagent Guru


Joined: 15 Apr 2005 Posts: 444 Location: 127.0.0.1
|
Posted: Sun Aug 15, 2010 5:28 am Post subject: |
|
|
| Angrychile wrote: | | Again, I don't feel too confused by object oriented programming. | Sorry, I didn't mean to imply that you were or that I thought you were. I guess, to answer your question directly...yes, it meets it's disadvantages well. If it didn't then OOPL would have died already. It's a self-evident truth. | Genone wrote: | | But that's really a case-by-case decision, and of course the whole subject of programming languages, styles and architectures is very subjective as people have different ways of thinking. | My point exactly. _________________
| shickapooka wrote: | | i think they programmed [otw] based on a right-wing jewish-nigger-nazi, his gay, retarded, left-wing love slave with webbed feet, and their three headed cat that poops uncontrollably. the cat is also an apple fanboy |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|