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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the best programming language for .NET

Status
Not open for further replies.

PeasNCarrots

Programmer
Jun 22, 2004
73
US
Upon my request I was issued Visual Studio.Net at work and I wanted your advice to which is the best langauge to use for high end development projects. ie the most powerful language. I know VB, but I rather be using the best language.
 
If it were me, I would use C#. Having said that, my impression is that with .Net, VB and C# are more similar to each other than VB and C++ ever were.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Simply because I think it allows for a more easy OO implementation. You can find plenty of people that would disagree with me, but I think the two languages are becoming so alike that it is more of a personal preference than ever before.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Most definitely. C# makes (IMO) OO implementation much easier than C++.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Please read thread654-893059

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
In my opinion its all down to personal perference, but coming from a VB background i found VB.net very easy to pick up.

At the end of the day everything looks the same when compiled, there really is no best/worst language to write in. It used to be that writing in C would give huge effieciency upgrades and its a must lower level language than VB, but thats not the case any more.

Both languages are equally powerful, there is nothing that you cannot do in C# than in VB, it all basically comes down to the way you prefer to write, but coming from a VB background i would say go for VB.net otherwise you have to get used to things like semi-colons and case sensitivity...

I hope this helps,

Simon
 
IMHO --
It is not personal preference
It is not what looks better then the other
It is not what is the new thing
... and all those other norm reasons ...

It is what gets the job done in the most efficient and stable means. THat is why there is not one language for each platform. They all have a specific backbone and what they can do better.

Which does what better? No one is going to know what every language does better over the next. Sure, you can know a few tasks that this does better then that but it all comes down to researching the task prior to grabbing the closest language to your heart to use.



___________________________________________________________________
[sub]
onpnt.com
SELECT * FROM programmers WHERE clue > 0
(0 row(s) affected) -->faq333-3811
[/sub]

 
Just an addition ..

there is nothing that you cannot do in C# than in VB

True ..but they are different and have differences in the utilization of each of them. example, I just wrote a few versions to my own sql analyzer for any (most) databases to make programmers tasks easier and C# kicked VB.NET's butt in effeciency on a few tasks. one was parsing the system for known catalogs and communications with some major databases. Another that was seen to be gained int he rewrite in C# was the overall validations on the complex sql statements I tested the application on. I threw in some very large string manipulation tasks for building the SQL statements on the needed construct of SQL for the DB currently selected and VB.NET just lacked hardcore over C# in doing a few of those. RegEx seemed to be a bit more speedy in C# also.

Of course this is all none-documented and not tested with hard data but more so my observations so is again, my opinion up to now on what I've seen. I plan to do some tests and benchmarks and will be more then happy to post those in the .NET forums that are proper for them

Have a good weekend all!

___________________________________________________________________
[sub]
onpnt.com
SELECT * FROM programmers WHERE clue > 0
(0 row(s) affected) -->faq333-3811
[/sub]

 
there is nothing that you cannot do in C# than in VB
Actually there is one thing you can do in C# that you can't in VB.NET --- operator overloading.

If you have an Invoice class, and you want to add some InvoiceDetail objects to it, you can redefine the "+=" operator to do this"
Code:
Invoice invoice = new Invoice();
InvoiceDetail invoiceDetail = new InvoiceDetail();
// Set some info on the detail object
// Then append it to the parent Invoice object
invoice += invoiceDetail;
Of course, some will argue that operator overloading results in a maintenance headache. But that wasn't the question. ;-)

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Seems like the debate continues...

Any way, Wonder if there are any performance differences on the .Net Compact Framework between VB.Net and C#.Net. We are getting ready to do a large scale application on the Pocket PC and are at a cross-roads in deciding on c# or vb.net.

Any thoughts in this area?

Noble


---------------------------------------
Noble D. Bell
 
Since one of the purpose of .net is to provide a common runtime to all programming languages, I would make my decision of which language to use on the over goals of your project. Since you already know vb it would be best to leverage your current skills and start with that. Then you can take advantage of more readable code, and some if not all of your existing code will still be useable as templates.

since c forces the programmer to maintain strict type control. and c programmers tend to write more effeciant code for a small device platform there are many advantages to c. Also there is no reason not to have a mix. .net allows programmers to function together without worring about what language source is written in.

if it is to be it's up to me
 
And there are things you can do in VB.Net that you can't in C#. But again, whether you'd want to is up for debate.
 
The underlying intermediate language is common but there will probably be a growing number of differences in what the various higher level languages provide. Check this thread out: thread656-799106


Jeff
The future is already here - it's just not widely distributed yet...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top