Gentoo Forums
Gentoo Forums
Quick Search: in
Basic Programming Question: Advantages of OOP?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Angrychile
Apprentice
Apprentice


Joined: 27 Oct 2009
Posts: 204

PostPosted: Sat Aug 14, 2010 11:48 pm    Post subject: Basic Programming Question: Advantages of OOP? Reply with quote

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
View user's profile Send private message
doubleagent
Guru
Guru


Joined: 15 Apr 2005
Posts: 444
Location: 127.0.0.1

PostPosted: Sun Aug 15, 2010 12:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Angrychile
Apprentice
Apprentice


Joined: 27 Oct 2009
Posts: 204

PostPosted: Sun Aug 15, 2010 12:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 8657
Location: beyond the rim

PostPosted: Sun Aug 15, 2010 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message
doubleagent
Guru
Guru


Joined: 15 Apr 2005
Posts: 444
Location: 127.0.0.1

PostPosted: Sun Aug 15, 2010 5:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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