VB.Net vs C#

K

kronecker

I ocassionaly come across articles stating that C# is better than
VB.net. However, they both sit on the same .Net layer so to speak and
surely must be the same? Is this true?

K.
 
J

Jason Keats

I ocassionaly come across articles stating that C# is better than
VB.net. However, they both sit on the same .Net layer so to speak and
surely must be the same? Is this true?

K.

No, they're not the same.

One's good looking, fun and productive - the other is C#.

;-)
 
J

Jack Jackson

I ocassionaly come across articles stating that C# is better than
VB.net. However, they both sit on the same .Net layer so to speak and
surely must be the same? Is this true?

K.

No. Just because they sit on the same layer doesn't mean they give
you access to everything, and some things are done entirely in the
compiler. In VS2008 they have very similar capabilities, although C#
can still do a couple of things that VB can't.

You can usually write more compact code in C#, but some would argue
that it is not as readable as VB.
 
C

Cor Ligthert[MVP]

Kronecker,

There is not one better to the other, in business situations when used by
developers who know from both the same VB is for sure much productiver.

However, for things like game building and school mathematics C# has the
advantage that a lot of SDK's like DirectX are more complete for C#.

As it is that the latter developers mostly take time to write articles, you
see often stated on Internet that C# is better, look first in those if is
written where about.

As you would read that a plane is better than a car, then you probably would
simple skip the article, now you have paid attention to it.

Cor
 
M

Mr. Arnold

I ocassionaly come across articles stating that C# is better than
VB.net. However, they both sit on the same .Net layer so to speak and
surely must be the same? Is this true?

Yes, they are both managed code languages that must use the .Net Framework.
I heard that two differences between VB.Net and C#.Net is C# uses anonymous
delegates and pointers, and VB.Net does not use them. Also, VB.Net as far
as creating a Com wrapper, VS does it automatically for VB, while C#.Net,
one has to make the Com wrapper manually. Other than that, there may be some
other differences, but for the most part, both solutions must use the .Net
Framework and the Namespaces provided by the .Net Framework.
 
G

Gillard

wich one is better ?
I do not know
wich one is more easy ?
wich pne is more powerfull?
wich one have more succes?
......
so wich one do you like??

what about other languages ??

I can tell you only one thing
every languages are best for some kind of program!
 
S

Scott M.

This has been debated for nearly 7 years now and the fact of the matter
(without any attempts to poke fun at one programming group or another) is
that for all intents and purposes, there is no real difference in what you
can accomplish or how well the code will perform regardless of what .NET
language you use.

Ultimately, it is the .NET Framework Common Language Runtime that really
does the work and VB .NET or C# are just ways for you to "talk" to that
runtime. With spoken languages, there are some that are more verbose than
others and there are some languages that don't have a translation for a word
in another language. So it is between C# and VB .NET.

There are some tasks that C# can do rather easily that VB .NET doesn't and
vice versa.

C# supports unsafe code - VB .NET doesn't.
VB .NET supports XML literals - C# doesn't.
VB .NET's "Handles" keyword makes event handling very simple - C# doesn't
have such a keyword.

etc., etc., etc.

At the end of the day your VB .NET code and your C# code must be
translatable into Microsoft's Intermediate Language (MSIL) and that is what
the CLR processes.

I have found though, that many (not all) C# developers (many of which are
former Java and C developers who have a chip on their shoulders) will try to
tell you that C# is better because of how it looks and it's simplicity
(according to them), but as I say, that is just a subjective preference.

Functionally and performance-wise they are just about equal.

-Scott
 
M

Mr. Arnold

Gillard said:
wich one is better ?
I do not know
wich one is more easy ?
wich pne is more powerfull?
wich one have more succes?
.....
so wich one do you like??

what about other languages ??

I can tell you only one thing
every languages are best for some kind of program!

What are you some kind of a nut?
Why would you make such a troll like behaviour post as this?
 
K

Kadaitcha Man

Mr. Arnold, ye sheep-biting lowly vassal, thou misshapen Dick, ye
ranted:
What are you some kind of a nut?

BWAHAHAHAHAHAHAHAHAHAHAHA!

Project much, DUHane?
 

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