What programming language do you prefer?

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

thornc

Golden Member
Nov 29, 2000
1,011
0
0
Originally posted by: Descartes

You think ASP/VBScript deserve a mention and you think VB is the LAST CHOICE?

Yap, just like Delphi!! If anyone mentions Perl,Python,PHP which are scripting languages, then
ASP/VBSCRIPT should also be mentioned....
Not that I would use it before or after VB!
For me VB is the last choice when I have to choose a programming language, which doesn't mean
that it should be the last choice for anyone else!!

I also feel that it's sad that politics get in the way of a language choice
rolleye.gif


I chose C#, but I always choose a language that best fits my requirements. I prefer C++ over Java, but there are a lot of scenarios where Java is the superior choice. I also enjoy Perl, but I wouldn't write most of my work in Perl (although I use it a lot for data conversions)....
[/quote]
Just what I said, each language has it's use! But I probably won't use C#!!
 

glugglug

Diamond Member
Jun 9, 2002
5,340
1
81
puhlease... what does delphi have that c/c++ doesn't?

For anything with more than a minimal GUI, Delphi is better with the VCL and its event driven object model, lots of snap in components most of which include source and which you can descend from/modify (even the VCL itself includes source if you get the professional or enterprise versions).
You can actually add your own events to the objects and reassign them at runtime too, they are basically just properties with function pointer types that are listed on a separate page in the object inspector.

Also the string functions are pretty good, providing a superset of STL string functionality (string in Delphi is actually a macro for the AnsiString class used on the C++ Builder side), and you have .c_str() and international character set functionality at the same time in a relatively transparent way.

Array properties are a nice way of overloading the [] operator with separate get/set functionality, or for multiple parameters between the [] of whatever types you want. Can operator[] be overloaded to take multiple params in all versions of C++? Not sure...

It has good variant manipulation calls too so you don't need to bother with looping through all the variant byref crap that ASP sends in, and also the BDE is a nice alternative to ADO/ODBC.

One more thing: try/catch/finally is so much nicer than try/catch... I'm surprised that hasn't been added to most C++ implementations yet.

For non-GUI applications or programs which need to be cross platform you are right C++ is generally better. But the visual development is awesome for anything GUI driven.

Or you could theoretically get the best of both worlds with C++ Builder but that is usually a version or 2 behind delphi in getting new features and is a bit buggy.


 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
Question for everyone who complains about platform dependent languages:

Do you actually do any work that requires platform independence?
 

kleinesarschloch

Senior member
Jan 18, 2003
529
0
0
Originally posted by: Descartes
Question for everyone who complains about platform dependent languages:

Do you actually do any work that requires platform independence?

i did, and probably will again.
 

coder1

Senior member
Jul 29, 2000
433
0
0
Descartes makes a good point. I see many people in my field who refuse to use a given language because they can't do the cross platform programming they think they need. These same people use their application on a Windows box 100% of the time. Unless you truly need platform independency, you should really consider other features a language may provide.

 

BFG10K

Lifer
Aug 14, 2000
22,709
3,002
126
C++ is my favourite. Once you learn it you can do anything you like as it's extremely powerful and flexible.