Solved

Delphi vs Visual Basic

Posted on 2000-02-24
26
518 Views
Last Modified: 2010-04-04
Why Delphi is more powerfull than Visual Basic? If both languages are supposed to be the same "OO".
0
Comment
Question by:scirocco1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 7
  • 4
  • +6
26 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2554313
listening . . .
0
 
LVL 5

Expert Comment

by:TheNeil
ID: 2554362
Delphi creates TRUE EXE's and not the Run-Time rubbish that VB outputs. Yes it's EXE's are typically bigger but they're faster, more powerful, and far easier to develop. Then again I would say that as I'm obviously a little bit biased...

The Neil
0
 
LVL 2

Expert Comment

by:florisb
ID: 2554366
because Pascal is more powerfull than Basic I would say. Also concerning OO.

Floris.





0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:scirocco1
ID: 2554406
TheNeil:
I'm a Delphi Developer but I need more information of what Delphi does and work that differs from VB.
0
 

Author Comment

by:scirocco1
ID: 2554408
Adjusted points to 50
0
 
LVL 5

Accepted Solution

by:
TheNeil earned 50 total points
ID: 2554452
Scirocco,

I don't understand what you mean by 'what Delphi does'. Delphi is a programming language (well you know that) so it can do pretty much whatever you make it do. I suppose in a general sense it allows easy Database development, easy Internet development, and all that sort of stuff. It also creates easily distributed EXEs, allows more access to low level aspects of the machine than VB (not sure about VB but DElphi allows inline assembler). Better development environment, faster application development, better implementation of the API (but still not as complete as Visual C's worse luck).

VB is based on (obviously) Basic which is fine as a beginner's language but doesn't offer quite as much power as a fully grown language like Pascal, which is what the all powerful Delphi is based on.

The Neil

PS If Inprise are reading this then this glowing comment on your wonderful system has to be worth a few freebies doesn't it?
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2554501
to The Neil: well spoken ;-)
0
 
LVL 2

Expert Comment

by:gallaghe
ID: 2554559
I am a Delphi person but have to admit there are some good points for VB.

On the bad side of VB, you can give VB to a complete novice and they can produce something quickly. This is because MS$ made every attempt to make life easy for the programmer. For instance in Delphi to show an integer to the screen you need to convert it to a string then display it. With VB you simply display it. Internally VB must compensate and do the conversion for you. Once you get lazy you are going down the dark path to un-optimized programs. Anytime you shortcut coding in VB you are pentalized since VB now has to do extra work. Delphi on the other hand makes you work, there are times when Delphi will inform you that some of your code is not even needed! I use VB and Delphi and notice many times that VB UI is much slower then Delphi.

On the good side of VB, once you have gotten to know it you can make it fairly close to Delphi speed (except for UI stuff). I just came back from a VB conference (VBITS) were there was a fellow how wrote many of his own functions in (using plain VB) to replace many of the standard VB routines, he demo's the speed difference. In many of the examples his code was many many times faster. Point being is you have to approch much of VB as C developers did in the early days, write your own code. Well C programmers did it because there were no internal routines i.e. positioning the cursor on the screen.

Anyway this topic can go back and forth depending on who you talk too. I am in the Delphi world for many sound reasons, it is simply the best with a company who is really to small to rub up with MS$ (even with the merger). Another bad thing about Delphi is that many IT managers will not go with Delphi simply because it is _not_ an MS$ product.

If your intent is to be a professional then my suggestions is use the right language for the job. Whenever possible look at Delphi first. When IT managers tell you to use VB, suggest Delphi, if the answer is no, well hopefully you have enough knowledge of VB to do the job. It's all in the toolbox.


Kevin
0
 

Expert Comment

by:PetriWork
ID: 2554589
When I look on a Visual Basic I don't understand a thing! It's incredibly hard to read in my oppinion.

Example 1.
Function calls:
MyFunc "hi", 15, 12234

Where's the parantheses?
and if the function returns a result I don't want I have to call it like this:

Call MyFunc "hi", 15, 12234

1-0 to Delphi


Example 2.
Variable declaration:
Wan't to declare multiple variables of the same type, welcome to hell.

Delphi:
var
  i, j, k, l: integer;

VB:
Dim I as Integer, J as Integer, K as Integer, L as Integer

Example 3.
Object Oriented... What is that?

Example 4.
You get a lot of marketing people on your neck telling you how easy it is to create stuff... Heck, the other day they made a virus just for fun...

And it goes on...
One good thing with VB though, Microsoft supports it....
0
 
LVL 5

Expert Comment

by:TheNeil
ID: 2554628
Petriwork,

I agree with you that Delphi is far, far better than VB but (and don't take this the wrong way), I think you're being a little picky on what are in fact just syntax changes. You want REAL nightmares then jump across to C (or worse still Visual C++) and then you'll see totally unreadable code (or maybe journey into Lisp land if you're a parenthesis fan - you won't be so keen after reading THAT). You're right on the idiot merketing people front though and Microsoft does support it (but is that a plus point?)

Object Orientated - so much a part of Delphi that it does it without you even realising (and believe me it makes life so much easier)

Kevin: You sum it up perfectly - use the right tools for the job. VB is good as an intro to coding (maybe a stepping stone to Delphi), C gives you raw speed, and Delphi has the right blend of ease-of-use and power (I'd also say it's the best for every job but I'm biased so won't).

The Neil
0
 
LVL 6

Expert Comment

by:edey
ID: 2554689
Also note that delphi gives you way  better access to the win32 api, inline asm (totaly no-exisent with vb), real oo (imagine an "oo" language without constructors and no inheritance, only vb).

Simply put, it if can be done easily in vb - it can be done *very* easily, or (perhaps) not at all.


Gl
Mike
0
 

Author Comment

by:scirocco1
ID: 2554796
gallaghe:

The last time I worked with VB was translating code from VB 4.0 to DELPHI 1.0. Now, I have VB 5.0,6.0 , DELPHI 5, installed on my machine and I have to say that DELPHI has a better interface since VB 4 to work with and there is no big deal to convert or work with strings in DELPHI. So this phrase: "This is because MS$ made every attempt to make life easy for the programmer." isn't true for VB and other applications.

0
 

Expert Comment

by:PetriWork
ID: 2554798
TheNeil, hehe... Well, he didn't ask about why we prefer Delphi before C... That would be too long a speach anyway... Must be so fun...

Regards,
  PetriWork
0
 

Author Comment

by:scirocco1
ID: 2554801
gallaghe:

The last time I worked with VB was translating code from VB 4.0 to DELPHI 1.0. Now, I have VB 5.0,6.0 , DELPHI 5, installed on my machine and I have to say that DELPHI has a better interface since VB 4 to work with and there is no big deal to convert or work with strings in DELPHI. So this phrase: "This is because MS$ made every attempt to make life easy for the programmer." isn't true for VB and other applications.

0
 

Author Comment

by:scirocco1
ID: 2554809
gallaghe:

The last time I worked with VB was translating code from VB 4.0 to DELPHI 1.0. Now, I have VB 5.0,6.0 , DELPHI 5, installed on my machine and I have to say that DELPHI has a better interface since VB 4 to work with and there is no big deal to convert or work with strings in DELPHI. So this phrase: "This is because MS$ made every attempt to make life easy for the programmer." isn't true for VB and other applications.

0
 
LVL 5

Expert Comment

by:TheNeil
ID: 2554839
Petriwork,

Please God don't let anyone post the question "C vs Delphi". The Ex-Ex server will get swamped...

The Neil =:)
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2554869
shall i post one ? ;-)
0
 
LVL 5

Expert Comment

by:TheNeil
ID: 2554909
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO...please don't

The Neil =:O
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2554928
ok,ok, this was loud enough,
i will not do it :-))
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 2554948
but if someone posts one, it will be fun, rite   :)
0
 
LVL 5

Expert Comment

by:TheNeil
ID: 2554990
Apologies for the outburst but just the thought of a "C vs Delphi" question completely fills me with dread.

It'll be fun if you're NOT a C fan and I suppose anyone sticking up for the hideous one letter language will get ripped to bits for all eternity. Hmmmm I wonder...

The Neil =:)
0
 
LVL 6

Expert Comment

by:edey
ID: 2555047
Actually C is very usefull for some tasks that delphi simply isn't suited for.  Would I write a db front end in C, no, would I write a device driver in delphi, prob. not.  Would i use either for a cgi app, yes.  
Delphi is fast, powerfull & fun to use but it simply can't beat C for portability. And no, this post does not mean I would condone a c vrs delphi thread, it simply points out that the two do not "compete" - it would be like comparing, say, delphi & sql



GL
Mike
0
 
LVL 5

Expert Comment

by:TheNeil
ID: 2555255
Mike

I can see exactly where you are coming from and agree that everything is the best at some aspect of programming. In this case we're just poking fun at the (nasty) beast that is C. You have to admit, it's not the easiest of languages when you compare it to Delphi and VB. Now I know the answer I'll get back will be along the lines of "Maybe it isn't but it does tie in with the API, and it's really powerful" and that's fine - me though, I prefer my coding to be quick and simple.

Of course all Delphi coders should still unite and try to rid the world of the damn thing though...

The Neil
0
 
LVL 20

Expert Comment

by:Madshi
ID: 2555266
Read here for some funny facts about VB:

http://www.exe.co.uk/stob/stobpull.asp?page=jan00.html

:-))

Regards, Madshi.
0
 

Author Comment

by:scirocco1
ID: 2557804
Later on, I'll ask what things Delphi can't do?
0
 

Author Comment

by:scirocco1
ID: 2557805
Later on, I'll ask what things Delphi can't do?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question