Runescape Bits & Bytes https://www.rsbandb.com/forums/ |
|
OOP programming https://www.rsbandb.com/forums/viewtopic.php?f=38&t=81051 |
Page 1 of 1 |
Author: | Ranging God [ May 4th, 2011, 4:50 pm ] |
Post subject: | OOP programming |
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. |
Author: | Adbot [ May 4th, 2011, 4:50 pm ] |
Post subject: | Register and login to get these in-post ads to disappear |
Author: | Shane [ May 4th, 2011, 5:49 pm ] |
Post subject: | Re: OOP programming |
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? |
Author: | Ranging God [ May 4th, 2011, 7:21 pm ] |
Post subject: | Re: OOP programming |
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) |
Author: | ryan1 [ May 5th, 2011, 6:17 am ] |
Post subject: | Re: OOP programming |
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. |
Page 1 of 1 | All times are UTC - 7 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |