Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi Vs C++Builder?

Status
Not open for further replies.

LastCyborg

Programmer
Feb 7, 2003
256
MX
Why do u think that Delphi is better than C++Builder?
What are the disadvantages of C++Builder?





---LastCyborg---
 
This is a Delphi Forum, and we (the maiority) prefer Delphi

Reasons: everything we can do in delphi

personally, I don't like the @#%$?<< sintaxe of C

Steven van Els
SAvanEls@cq-link.sr
 
Delphi and C++ Builder are both great products cos their made by Borland. However, if you want a powerful RAD (Rapid Application Development) tool then your best bet is Delphi. Delphi is a lot easier to learn than C++ (especially the visual side of things i.e. GUIs) because its foundations are in the Pascal language which is a teaching language. C++ is much more complex but probably more powerful. I've used C++ Builder briefly but not enough to give its' pros and cons. Maybe post this question in the C++ Builder forum, so that you get biased opinions from both sides!

Clive [infinity]
Ex nihilo, nihil fit (Out of nothing, nothing comes)
 
&quot;Pascal language which is a teaching language. C++ is much more complex but probably more powerful

Objection
Pascal is a programming language that has been used for teaching programing concepts and logics. It is more readable then others (especially C).
The language for programming in the Universities was Fortran when the PC was still an exotic equipment.
I started out with Fortran on a Mainframe (DEC or something like that) and wanted to use a PC with Fortran (8086-xt), not available. The alternative was Turbo Pascal 2.0 which had almost the same sintaxe and was more readable then Fortran.
Almost every decent Engineering book written between 1960 - 1985 has Fortran code and examples. With turbo pascal I wasn't tied anymore to a mainframe, and I discovered that programing had more then only working with numbers and arrays. Word processing, graphics animation, spreadsheets, mouse routines databases, mechanical simulations, finite elements analysis, all I have done with Turbo Pascal, so the argument that C is more powerfull, nobody ever conviced me yet. That argument I hear from people that can't code more then 10 lines in pascal or 3 lines in C.

Not because something looks cryptic (unreadable) it is good. It is possible to write bad programs in Delphi/Pascal or C, all depends of the knowledge of the programmer and the way he applies the fundamentals of logics.


Steven van Els
SAvanEls@cq-link.sr
 
It used to be that C had a distinct advantage over Pascal, mainly in performance and flexibility (hardware access etc.).

Those days (at least on the PC where we have Delphi and now also under Linux with Kylix) are mostly over, and where they are not we can use embedded Assembler in Delphi or link to DLLs written in just about anything that takes your fancy!

In fact, when run on the same machine there is NO performance difference between Delphi code or C++ Builder code. The reason for this is simple: Delphi and C++ Builder both use the same compiler to generate the machine code (both use a multi-stage compiler, the first stages of which are of course different but the latter stages are the same).

Pascal was indeed designed to be a language that was easy to teach and forced students into proper coding practice.
But that doesn't mean it was designed to be a language with limited functionality.
Niklaus Wirth knew that if the language were useless outside accademia it would never gain acceptance so he avoided that pitfall.
 
Steven,

I was not trying to give the impression that Pascal can only be used for teaching, I was merely trying to give an indication of its' roots - apologies for bad phrasing.

Notice I didn't say: C++ is definitely more powerful. I said probably meaning that I'm not too well informed about this but have heard it said.

I've just been reading some comments in the VC++ forum and lots of people seem to use VB as a front end and C++ as a back-end when it can all be done in Delphi without the need to use two languages.

One thing I'm not sure if you can do in Delphi that you can do in C++ is write device drivers (but I may be wrong).

Clive [infinity]
Ex nihilo, nihil fit (Out of nothing, nothing comes)
 
The big difference between Delphi/Pascal and C/C++ is that the compiler does a strong range/variable check in Pascal, so the compiler will not allow mixing of incompatible types, but this feature can be turned off, and you will have the same headaches looking for bugs yourself like in C, (placing message boxes in various points of your program). Clive don't take my comments as an offense.

But I sustain my opinion that most of the people who ever discussed the pro's and cons of this question with me, had even problems making a simple if then, else statement in a spreadsheet.



Steven van Els
SAvanEls@cq-link.sr
 
Given that the code generated in the end is identical I'd say device drivers are possible in Delphi if they are possible in C++ Builder.
The code might be a bit more tricky to write as Delphi has far stronger typechecking and won't allow writing outside array boundaries (hehe) but it can be done.
Delphi too supports raw pointers...
 
Well I like your answers.
I'm a C++Builder Programmer, and I wanted to know why most people (I think) preffer Delphi than C++Builder.

In school I learned to construct programs in both languages (Pascal & C++), but one day I had to choose between Delphi & C++Builder, first I chose Delphi, why? just because its popularity, but the problem was the coding, I started to hate Pascal, because pointers, is not case sensitive, etc.

I think that C++ is a cleaner language, because you can see just the esential code, others thing are just symbols and you can exclude it. I mean ( {}, operators like ?), and specially when you work with Dynamic memory.

But finally I Think that depends of everyone, because if you do something in Delphi u can do it in C++Builder too and viceverse.







---LastCyborg---
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top