PB vs VB

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

PB vs VB

Post by utopiomania »

I have been programming using PB for a few years now, but want to switch to VB instead. (VB is Visual Basic Express 2008)

I know these languages are different, but here is the question:

What can I do in PB that I cannot do in VB.?
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Re: PB vs VB

Post by Joakim Christiansen »

utopiomania wrote:What can I do in PB that I cannot do in VB.?
From my perspective I have the feeling that doing stuff in PB is easier, I have done a lot stuff my dad programming in VB would stay away from.

I would rather ask YOU what can you do in VB that you can't do in PB? Since you want to switch there must be a reason. :P
I like logic, hence I dislike humans but love computers.
User avatar
idle
Always Here
Always Here
Posts: 5834
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Post by idle »

> What can I do in PB that I cannot do in VB.?
This is some sort of joke right?
Thalius
Enthusiast
Enthusiast
Posts: 711
Joined: Thu Jul 17, 2003 4:15 pm
Contact:

Post by Thalius »

What can I do in PB that I cannot do in VB.?
...be as efficient. :wink:
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone! ;)"
Digital Wargames
Enthusiast
Enthusiast
Posts: 203
Joined: Sat May 23, 2009 4:39 am

Post by Digital Wargames »

The only advantage I would give VB is the GUI editor
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

Well, with VB.Net you can't create self contained executables that run on any computer
without the need to install a ~160 MB framework (.Net 3.5). That's a great advantage imho :)
Windows 7 & PureBasic 4.4
User avatar
GWarner
Enthusiast
Enthusiast
Posts: 605
Joined: Fri Jul 24, 2009 1:34 pm
Location: USA

Post by GWarner »

VB.NET is garbage IMHO the best VB was VB6.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: PB vs VB

Post by PB »

> What can I do in PB that I cannot do in VB

Take your exe to ANY computer and run it without failure. Good enough?

This really cannot be overstated. A self-contained exe is the best feature of
any programming language. You just can't assume that the target computer
will be able to run a VB app without installation first.

Today, I reinstalled XP and needed to run one of my apps. Done! If it were
written in VB5 (which I owned before PureBasic) then I'd need to install the
app first just so all the dependencies would be installed first. So I add bloat
to my PC when my PureBasic app adds none. Think about that for a second.

Anyway, why do you want to switch? Give us a compelling reason and I bet
we can find you an easy workaround in PureBasic.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Post by akj »

Surely this topic is misplaced and should be posted on a Visual Basic forum.

Let THEM try to conjure up any real or imagined areas in which VB is more capable than PB. It could be quite interesting!
Anthony Jordan
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Well PB has Linux and Mac (and old Amiga) support. VB doesn't natively create Linux and Mac executables. Thats another point you forgot.
bye,
Daniel
User avatar
talisman
Enthusiast
Enthusiast
Posts: 231
Joined: Sat May 23, 2009 9:33 am

Post by talisman »

Great that this forum have such enthusiasm towards these types of questions, but let me add my 2 cents to this:

I believe you have good reasons to go for Visual Basic, whether personal or not, so let's make the comparison between the two languages regarding Microsoft Windows only. Sure PureBasic is available on other platforms, but it doesn't really count as a pro here (neither as contra). Also, whether the final executable is self-contained or not counts here as a plus only. I believe utopiomania wants to know what can he as a programmer achieve in PureBasic that he can not in Visual Basic. There is not much. Both languages can make use of Win32 API and are essentially the same at the core (read: both are BASIC languages after all). I am not the best to argue about which code is more easier to work with, so let's assume both are just as easy to read and write. With Visual Basic there are certainly things you can do that with PureBasic you can't (easily); ActiveX/COM and DirectX 10 come to mind (though both can be used in PureBasic to some extent by means of 3rd party add-ons, ActiveX plugins for example are readily available for Visual Basic and the same type of integration with ActiveX is simply not possible with PureBasic).

It boils down to what you want to do in either programming language though. As I said, I believe you have your (good) reasons to choose Visual Basic, but you also seem to be experienced in PureBasic so why not compare both on your very own PC and see the difference yourself?

Do remember though, that with PureBasic you can do most (if not everything) that Visual Basic as well, plus it gives you very efficient self-contained executables and allows you cross platform development. As I mentioned above though, these might not be of such importance to you, so decide all by yourself and trust your intuition.

All the best,
talisman
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

I would rather ask YOU what can you do in VB that you can't do in PB?

Since you want to switch there must be a reason.
Mostly the OOP stuff which I really find easy, the rich IDE, the size of the user base
and staying power of MS and the Visual Basic language itself.

Mind you, I love PureBasic, and will not stop using it. I'm just unshure where the catch is with VB.

BTW, there's no problem distributing VB express apps, but you need the built in ClickOnce
or a third party installer.
User avatar
GWarner
Enthusiast
Enthusiast
Posts: 605
Joined: Fri Jul 24, 2009 1:34 pm
Location: USA

Post by GWarner »

DarkDragon wrote:Well PB has Linux and Mac (and old Amiga) support. VB doesn't natively create Linux and Mac executables. Thats another point you forgot.
Well, there is RealBasic which is very similar to the old Visual Baiscs which also has comes in Windows, Linux, and Mac versions.

The one feature VB6 has over PureBasic is its IDE, I would love for PureBasic to have an IDE like that.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> the OOP stuff

PureBasic doesn't have that natively, but that doesn't make it less capable.
There are third-party solutions to get OOP in PureBasic if you really want it.

> the rich IDE

The form designer, you mean? Fred and co are working on a new one,
according to previous posts. Try PureFORM in the meantime, or check
out http://sourceforge.net/projects/visualpurebasic/ . Screenshot here:
http://sourceforge.net/dbimage.php?id=186095

> the size of the user base

The "split" user base. Half stayed with VB Classic, half moved to VB.NET.
Besides, most source code sites with VB can be used with PureBasic too.
I use them all the time to convert VB sources to PureBasic code. Those
sites and user base have been a great help to me even though they're
written for an entirely different Basic. :)

> staying power of MS

That's debatable. IE losing share to FF, Word can't be distributed at the
moment due to XML issues, people hating Vista... hmm. And they don't
always stand by their products: they've ditched VB Classic, and ditched
Money, and ditched other apps in the past not deemed worthy anymore.

> the Visual Basic language itself

It's okay, but not compelling (to me). The apps that I once coded in VB
are so much smaller and better since I converted them to PureBasic.
I never had anything like Macros and the excellent debugger in VB.
And when is Microsoft going to add a feature to VB for you like Fred?

Still, whatever floats your boat. Once you go to VB and have to start
declaring your API calls and creating setup apps for every software
you write, you'll come back to PureBasic. ;)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

I don't really like OOP I find messy, and prefer the Procedural way.
That being said, hmm... I wouldn't advise VB at all. If you gotta go with something, go for C# (or C++?), same "IDE" pretty much, and there is no lack of C# code out there.
Post Reply