C# is Better Than VB ?

G

Guest

Hello!!!
I have heard that C# is better than VB because of optimization and standard
of Microsoft .NET development?
 
G

Guest

Daniyal said:
Hello!!!
I have heard that C# is better than VB because of optimization and standard
of Microsoft .NET development?

That depends on which VB you mean. It's better than VB6 for the reasons
you've listed, but VB.NET uses the identical framework and compilation
routines which makes the two equivilant. Langauge differences make some
constructs more natural to do in each langauge. The same is true of any
other language using the CLR.
 
B

Bob Powell [MVP]

Strange as it may seem, especially as I am a big C# user that really can't
stand VB on moral grounds ;-)... There are some instances where the VB
compiler generates neater and demonstrably faster code than the exact
equivalent C# code.

However, I only say this as a demonstration of my impartiality.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
J

Jon Skeet [C# MVP]

Bob Powell said:
Strange as it may seem, especially as I am a big C# user that really can't
stand VB on moral grounds ;-)... There are some instances where the VB
compiler generates neater and demonstrably faster code than the exact
equivalent C# code.

Interesting - do you have any examples? I've seen the exact reverse,
where the VB.NET compiler generates fewer IL instructions, but bigger
ones, such that the size of a method in bytes is bigger for VB.NET than
for C#. In cases like that, it's possible for the size to go over the
inlined/not-inlined boundary and make the C# code faster. The chances
of that being significant are absolutely miniscule, of course - but I
hadn't heard about the reverse situation.
 
W

Willy Denoyette [MVP]

Hmm... , VISTA the OS, is unmanaged C++ and some assembly code only(still
under development). Guess you are talking about something like Avalon and
Indigo.

Willy.
 
C

clintonG

That's not what a Microsoft VP was quoted as stating in one of this week's
trade journals (eWeek or Information World as I recall). I think it was the
VP they call Soma who controls the developers group and they were discussing
the reorganization. It was stated that Vista has been developed from the
ground up using C# with a marginal use of unmanaged code in the kernel.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
 
B

Bob Powell [MVP]

My March 4th blog entry at http://bobpowelldotnet.blogspot.com explains one
concrete instance.

I think that certain for-each for-next loops are more efficient in VB.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
W

Willy Denoyette [MVP]

Well, they are wrong (the trade journals ), no single MS VP would ever say
such a thing (ps. the VP of the Developer Division is Somasegar ).
All that's written in managed code (take care, I'm not saying C#, because it
would be wrong also) is Avalon and Indigo (now WPF and WCF), this added to
the upcomming v2. framework is called WinFX, but this is not the OS.


Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top