OOP vs procedural

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
talisman
Enthusiast
Enthusiast
Posts: 231
Joined: Sat May 23, 2009 9:33 am

OOP vs procedural

Post 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
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Re: OOP vs procedural

Post by djes »

ImageImageImageImage
User avatar
talisman
Enthusiast
Enthusiast
Posts: 231
Joined: Sat May 23, 2009 9:33 am

Re: OOP vs procedural

Post 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!
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: OOP vs procedural

Post by Kaeru Gaman »

there is no neutral point of view, never, in no concern, and extremely not concerning OOP...
oh... and have a nice day.
User avatar
talisman
Enthusiast
Enthusiast
Posts: 231
Joined: Sat May 23, 2009 9:33 am

Re: OOP vs procedural

Post by talisman »

Ok well in favor of procedural, what do you hate in OOP?

Any OOP expert here?
Fred
Administrator
Administrator
Posts: 18352
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: OOP vs procedural

Post 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.
User avatar
talisman
Enthusiast
Enthusiast
Posts: 231
Joined: Sat May 23, 2009 9:33 am

Re: OOP vs procedural

Post 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? :?
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: OOP vs procedural

Post 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
USCode
Addict
Addict
Posts: 924
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: OOP vs procedural

Post 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
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: OOP vs procedural

Post 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! :)
I may look like a mule, but I'm not a complete ass.
User avatar
talisman
Enthusiast
Enthusiast
Posts: 231
Joined: Sat May 23, 2009 9:33 am

Re: OOP vs procedural

Post 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!
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Re: OOP vs procedural

Post 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:
--Kale

Image
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: OOP vs procedural

Post 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.
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Re: OOP vs procedural

Post 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.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Thorium
Addict
Addict
Posts: 1308
Joined: Sat Aug 15, 2009 6:59 pm

Re: OOP vs procedural

Post 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.
Post Reply