Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: OOP programming
PostPosted: May 4th, 2011, 4:50 pm 
Rsbandb Donor
Offline

Joined: October 16th, 2005, 3:14 pm
Posts: 4731
Location: Kasnas City us
RS Name: Azek
RS Status: P2P
I am writing a paper atm on OOP programming, and I am currently writing a paragraph on the pro's and con's of it. I thought I would take the opinions of BandB and put it in my paper since there are some smart guys here.

Oh, and just for the record, I am pro OOP.

_________________
Image


Top
 Profile  
 
 Post subject: Register and login to get these in-post ads to disappear
PostPosted: May 4th, 2011, 4:50 pm 
Rsbandb Donor

Joined: September 9th, 2004, 1:47am
Posts: 9047
Location: In your web browserz


Top
  
 
 Post subject: Re: OOP programming
PostPosted: May 4th, 2011, 5:49 pm 
Site Owner
Offline

Joined: September 9th, 2004, 9:26 am
Posts: 6991
Location: Wild Rose Country ca
RS Name: shane12088
RS Status: P2P
I like it. I think it has the potential to greatly reduce the amount of code one writes. This can only be accomplished if the programmer is well versed in all the technicalities of the OO language in question. The programmer also needs to know what they're wanting to do specifically. You can't just sit down with an OO language and hack together a quick proof of concept as you go. You need a plan before you start since the IDE's used (for Windows and Mac at least) force you into the MVC pattern. The plus side of this is that your code is all nicely segmented and logic is kept with the logic and display code stays where that should be.

I'd also like to point out one thing and a few offshoots from that. Objective-C (Mac) and C# (Windows) are fully object oriented languages. They aim to make programming for users easy which is great but there's nothing worse than a blind programmer. What I'm trying to say is the same as above, even though it's easy a plan is still needed. Also, OO code will always be slower than pure C or C++ but it's the modern world we live in. Most times our computers are using no more than 5% of our CPU resources. It's said that a well designed system uses it's resources effectively, meaning if you program something and it uses resources that's fine. That's what it's supposed to do.

For a final note, from personal experience I'm a believer that if a language wasn't designed for OO from the ground up it should not be used for OO. The prime example that comes to mind is PHP.

Is there any specific part of OO programming you're looking to talk about?

_________________


Top
 Profile  
 
 Post subject: Re: OOP programming
PostPosted: May 4th, 2011, 7:21 pm 
Rsbandb Donor
Offline

Joined: October 16th, 2005, 3:14 pm
Posts: 4731
Location: Kasnas City us
RS Name: Azek
RS Status: P2P
Shane wrote:
I like it. I think it has the potential to greatly reduce the amount of code one writes. This can only be accomplished if the programmer is well versed in all the technicalities of the OO language in question. The programmer also needs to know what they're wanting to do specifically. You can't just sit down with an OO language and hack together a quick proof of concept as you go. You need a plan before you start since the IDE's used (for Windows and Mac at least) force you into the MVC pattern. The plus side of this is that your code is all nicely segmented and logic is kept with the logic and display code stays where that should be.

I'd also like to point out one thing and a few offshoots from that. Objective-C (Mac) and C# (Windows) are fully object oriented languages. They aim to make programming for users easy which is great but there's nothing worse than a blind programmer. What I'm trying to say is the same as above, even though it's easy a plan is still needed. Also, OO code will always be slower than pure C or C++ but it's the modern world we live in. Most times our computers are using no more than 5% of our CPU resources. It's said that a well designed system uses it's resources effectively, meaning if you program something and it uses resources that's fine. That's what it's supposed to do.

For a final note, from personal experience I'm a believer that if a language wasn't designed for OO from the ground up it should not be used for OO. The prime example that comes to mind is PHP.

Is there any specific part of OO programming you're looking to talk about?



Not really specific. I'm in a c# class, so I guess you could say OOP that is relevant to c#. I like you points, and I suppose I will quote what you say in my paper, if that is okay with you? (won't make you sound bad, i promise ;p)

_________________
Image


Top
 Profile  
 
 Post subject: Re: OOP programming
PostPosted: May 5th, 2011, 6:17 am 
Dragon Member
Offline

Joined: March 25th, 2005, 2:58 pm
Posts: 1664
Location: Nebraska us
RS Name: Ryan V 09
RS Status: Classic
From my experience, OO languages are just simply easier to write with. Using generic class objects can help to reduce the amount of code that you have to write. However, a language like C runs quite a lot faster than a language like Java. So if you're dying for efficiency, you can still effectively simulate an object in C by putting a structure and methods for the structure in a header file and then including the header file in a larger project.

_________________
Image
Spoiler for Nietszche Quote:

But what did such a Teuton afterwards look like when he had been "improved" and led into a monastery? Like a caricature of a human being, like an abortion: he had become a "sinner," he was in a cage, one had imprisoned him behind nothing but sheer terrifying concepts... There he lay now, sick, miserable, filled with ill-will towards himself; full of hatred for the impulses toward life, full of suspicion of all that was still strong and happy. In short, a "Christian"... - Twighlight of the Idols
Image


Top
 Profile  
 
Display posts from previous:  Sort by  

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

Jump to: