Page 1 of 4

OOP vs procedural

Posted: Mon Oct 26, 2009 4:56 pm
by talisman
I know I know, but quick please refer me to some threads here for example or give your own neutral viewpoint of OOP vs procedural programming. I have a presentation tomorrow :mrgreen:

Thank you MUCH!
- talisman

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 4:59 pm
by djes
ImageImageImageImage

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 5:05 pm
by talisman
It's been done millions of times I agree, but I did try to search the forums, can't really find a neutral point of view. I don't trust the 'net either, rather get some true word from a PureBasic coder (you guys seem more sophisticated than on other forums at least).

Nothing too detailed, just some examples where each could be better etc.
Thank you much!

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 5:28 pm
by Kaeru Gaman
there is no neutral point of view, never, in no concern, and extremely not concerning OOP...

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 5:30 pm
by talisman
Ok well in favor of procedural, what do you hate in OOP?

Any OOP expert here?

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 5:47 pm
by Fred
This has been discussed a lot, and it always ends with heated discussion, so please don't start again. Google is your best friend.

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 5:53 pm
by talisman
Fred wrote:This has been discussed a lot, and it always ends with heated discussion, so please don't start again. Google is your best friend.
God, that is what EVERYONE says. Here, this is what I found through Google: http://stackoverflow.com/questions/5523 ... procedural (just read the first reply!)

So where on Earth is the information I am looking for? :?

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 6:10 pm
by rsts
The topic you referred to answered your question the same as fred.

"Down voted because this is the type of question that can be asked of google, with more answers than you could hope to read. Kindly do some pre-research and then ask more specific questions."

the top voted answer also answers your basic question.

Any more than that and this will rapidly degenerate.

It's "your" presentation. Research it and reach your own conclusions.

cheers

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 6:29 pm
by USCode
FYI - Not sure how useful this will be for you but here's Carl Sassenrath's (Amiga OS, REBOL) view of OO languages:
http://www.rebol.com/cgi-bin/blog.r?view=0425

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 6:39 pm
by srod
Beyond facts and there is only opinion and thus I'm with Kaeru on this one.

There are facts a plenty to be found on the web,... and more than a few opinions as well! :)

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 6:52 pm
by talisman
I'm fine with this and respect what you are saying. I've found some information now, but without actual code (pseudo anyone?) it is hard to explain the differences. Anyone have some spare code say in Java and PureBasic that does the same thing and is sweet n short? I'm looking at something like a Hello World, but a bit more advanced and not so simple. Thanks!

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 7:15 pm
by Kale
Just say that OOP vs Procedural is like two religions.
They'll get the idea:

Some people follow one or the other.
Some people switch between them.
Wars are fought over who is 'right' and who is 'wrong'.

In the end, you have to remember, ...there is no god. :wink:

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 7:38 pm
by SFSxOI
Sounds like everyone is trying to have a civilized conversation over this, trouble maker. :) (just kidding)

I tried the OOP thing a while back, tried really hard too. Spent about two months every day with a "test project", applying all the tutorial stuff I could find and reading and re-reading the various examples. My conclusion: OOP has its place, but like any project or work - using the proper tool for the job makes things go a lot smoother. I just could not see where, for me at least, OOP being used made the end result any different then what it would have been had I just used procedural. I mean I could have chosen to do a project using OOP but I could have also chosen to use the procedural method, in other words - I could have chosen what to use, and I think thats what this comes down to, you choosing what ever tool you think it right for the job. If it doesn't work out or makes things harder then it should have been then you might need to re-evaluate the tools being used, if it does work out just fine then great, but what ever you use its your choice.

http://www.purebasic.fr/english/search. ... ywords=oop < for some past musings and experiences for OOP by users, and I know there used to be more but I can't find them now. Then of course, as others have suggested, there is google.

Re: OOP vs procedural

Posted: Mon Oct 26, 2009 7:58 pm
by Fluid Byte
Have a look at srod's OOP tutorial for PureBasic:

http://www.purecoder.net/oop.zip

It shows how to use common OOP techniques (to a certain degree) in PureBasic and why you should use it for larger/extendable projects.

Re: OOP vs procedural

Posted: Tue Oct 27, 2009 1:18 am
by Thorium
I am absolutly not a OOP expert. So my opinion may be not the best to follow. But this is my opinion or better say experience. I don't realy have a opinion about OOP because i just dislike it and have no deep understanding about it.

I started programming with Turbo Basic on DOS and switcht later to Visual Basic 6 on Windows. I was used to procedural programing with Turbo Basic and VB's OOP was all new for me. So i learned a bit about it but i couldn't take any advantage of OOP. This was mainly because i don't realy understand it and still don't understand it. ^^
I had a realy hard time with VB6. Many strange bugs. And OOP feels unnatural to me. It's not how the CPU is working. It's like a abstraction layer. It confuses me because i try to think like the computer is working if i am programing.

I got a lot of problems with it, had a hard time and finaly went back to procedural and started with PureBasic. And here i am happy with PureBasic because it is procedural.