PureBasic Object Oriented
Re: PureBasic Object Oriented
Infinity is life
Re: PureBasic Object Oriented
Code: Select all
Repeat
if infinity = life
break
endif
forever ; PB has infinity :)
; go on living life, take a coffee for yourself
Re: PureBasic Object Oriented
Code: Select all
if life = infinity
return hell
endif
; get absorbed into reality, welcome to ZOMBO.COM
-
- Addict
- Posts: 4775
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: PureBasic Object Oriented
It looks like PureBasic urgently needs to be converted to an infinity-oriented language. 

Re: PureBasic Object Oriented
I hereby agree to coin the new term infinity-oriented language
Re: PureBasic Object Oriented
To infinity and beyond!


Re: PureBasic Object Oriented
I have worked a lot with OOP and only with Purebasic I understood how OOP works and how computing power and memory intensive it is.
With a little effort it is also possible to programme OOP with Purebasic. There are courses and many examples in the forum. Even the PB IDE uses some OOP.
Google Search: "oop site:purebasic.fr"
Link: ActiveScript with Purebasic
With a little effort it is also possible to programme OOP with Purebasic. There are courses and many examples in the forum. Even the PB IDE uses some OOP.
Google Search: "oop site:purebasic.fr"
Link: ActiveScript with Purebasic
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
-
- Enthusiast
- Posts: 377
- Joined: Sat Feb 12, 2022 7:15 pm
Re: PureBasic Object Oriented
I have first started in OOP C++ in long time, it is very powerful and doing whatever you want it
Seeing in examples big company use C++ and also C too.
Main reason for OOP is more secure than C, C is easy thought but in some degree of complexity it is hard to maintain all code at once, you have a great power and responsibility. But why OOP ? Because OOP manages more easily in complexity with objects, it can reuse, to locate to error, better visually in objects for construction in system, etc... In complex code it is more easy to maintain because of classes splitting to little things
A lot of programmers are afraid from C++ because it is very verbose and no clue idea of what classes on how they work between them...
I love PB too, I have done with my raytracer from C++ to translate at PB
It is a no problem for me.
So talking OOP compare to procedural programming, that doesn't make sense, procedural programming is a technical and OOP is another technical with several paradigm style...
And don't be afraid of OOP as procedural programming as well.
If PB integrates with OOP so it will be great too but keep procedural programming too as C++ with C
No downside but just more the possibility and more choice ...
That a thing is still good PB was it understand the code C++ by wrapping with C
Don't make me wrong, I love both OOP and procedural programming, I am saying it

Main reason for OOP is more secure than C, C is easy thought but in some degree of complexity it is hard to maintain all code at once, you have a great power and responsibility. But why OOP ? Because OOP manages more easily in complexity with objects, it can reuse, to locate to error, better visually in objects for construction in system, etc... In complex code it is more easy to maintain because of classes splitting to little things
A lot of programmers are afraid from C++ because it is very verbose and no clue idea of what classes on how they work between them...
I love PB too, I have done with my raytracer from C++ to translate at PB

So talking OOP compare to procedural programming, that doesn't make sense, procedural programming is a technical and OOP is another technical with several paradigm style...
And don't be afraid of OOP as procedural programming as well.
If PB integrates with OOP so it will be great too but keep procedural programming too as C++ with C

That a thing is still good PB was it understand the code C++ by wrapping with C

Don't make me wrong, I love both OOP and procedural programming, I am saying it

Re: PureBasic Object Oriented
PB must remain procedural, I'm fine with it as it is, if you like oop so much there are several examples in the forum on how to do it with purebasic or otherwise you can move directly to an OOP language and you will finally achieve infinite happiness

Re: PureBasic Object Oriented
Fred could add a few tiny optional features to the structure type and we come a long way to simplify the implementation of the object idea in PB. But won't happen.
viewtopic.php?t=75529
viewtopic.php?t=75529
Re: PureBasic Object Oriented
I must say I was fascinated by AppleScript (it was even "better" years ago…) the moment I discovered it
repeat with i in mylist
set a to items of desktop whose name contains "pure fred"
…
repeat with i in mylist
set a to items of desktop whose name contains "pure fred"
…