Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

C# vs VB

0 views
Skip to first unread message

Rippah

unread,
Feb 1, 2002, 5:17:49 PM2/1/02
to
According to MS there is no performance issues between use
VB .NET or C# .NET.

Is there a good reason to choose one over the other? I
personally prefer C# since my background is in C++ and
Java.

Brian Bischof

unread,
Feb 1, 2002, 5:48:28 PM2/1/02
to
This has been debated multiple times over the past couple of months. You can
find all the pros/cons from everyone if you look at the archives in
www.google.com

Basically, the people that program in C++ or Java like C# b/c they like
syntax that is clean and not verbose. Hearing the words "Visual Basic"
automatically makes them repulsed and wanting to vomit. :-)

The people using VB.NET like the fact that the language has some
improvements to the IDE so that the VB6 programmers find it easy to use.
Also, I talked to a MS Rep at a conference and he said that MS is planning a
lot more improvements to make VB.NET easier and these changes won't be
implemented in C#. He didn't expand on what those changes are going to be.
This makes me want to be a fly on the wall to see what they have up their
sleeves....

A lot of people don't think it matters which you choose. Both languages are
soooo similar that once you learn one its easy to learn the other
(especially with my book!). The hard part comes with learning the Framework.

My opinion: If you know C++, learn C#. If you know VB6, learn VB.NET. You
can argue all day which is better, but using what you are already familiar
with makes the task so much easier. Once you understand how the framework
works it is TRIVIAL to learn the other language.

Brian Bischof, CPA, MCSD, MCT
"The .NET Languages: A Quick Translation Guide"
www.bischofsystems.com/csharp.asp

"Rippah" <ar...@cfl.rr.com> wrote in message
news:e71201c1ab6e$48998f20$a4e62ecf@tkmsftngxa06...

Johan Eriksson

unread,
Feb 1, 2002, 7:03:11 PM2/1/02
to
I dont think there are any notable performance issues (they are both using
the .NET Framework). And, as far as I see it
you can do about 99% of what you can do in C# in VB.NET.. but, you cant do
unmanaged coding in VB.NET. I guess thats the "major" drawback. Whan ot
comes to the "VB Coding is for newbies" issue, my opinion is that its pure
bullshit... that was maybe an issue before (hmm) VB5. But, anyway, as you
come from C++/Java you shouldnt have a problem with this old fashioned and
(to me) confusing curly brackets ;)

/Johan

"Rippah" <ar...@cfl.rr.com> wrote in message
news:e71201c1ab6e$48998f20$a4e62ecf@tkmsftngxa06...

Jonathan Allen

unread,
Feb 1, 2002, 6:38:22 PM2/1/02
to
> According to MS there is no performance issues between use
> VB .NET or C# .NET.

Actually there are a few things, but the question remains as to whether or
not it is trivial.

C# can use unchecked math for specific sections, which makes calculations
faster. However this opens the possibility of logic errors due to overflows,
so I would never use it.

Gunnerson did an article on unsafe sections which showed that they can be
faster. Again, the slight performance advantage was not enough to make me
want to deal with the headaches involved in using it.

--
Jonathan Allen

.Net Wish List Site: http://jonathan.cloverlink.com/

"Rippah" <ar...@cfl.rr.com> wrote in message
news:e71201c1ab6e$48998f20$a4e62ecf@tkmsftngxa06...

Mattias Sjögren

unread,
Feb 1, 2002, 9:13:52 PM2/1/02
to
Johan,

>And, as far as I see it
>you can do about 99% of what you can do in C# in VB.NET.

You can look at it the other way around and say the same thing about
VB.NET. There are things you can do in VB.NET that can't be done in
C#.


>but, you cant do unmanaged coding in VB.NET.

Neither can you do it in C#.


>Whan ot
>comes to the "VB Coding is for newbies" issue, my opinion is that its pure
>bullshit...

It is for newbies *too*. That's one of it's strengths.


Mattias

===
Mattias Sjögren (VB MVP)
mattias @ mvps.org
http://www.msjogren.net/dotnet/

John Rebbeck

unread,
Feb 2, 2002, 11:36:51 PM2/2/02
to
VB.NET code in my opinion is too full. Look at VB.NET code and there is so
much more code than C# becauseof all the End Ifs and stuff.
I am going to make sure I can read and write both as they are so similar. I
prefer C# even though I come from a VBScript, ASP programming background.

Cheers,
John

"Rippah" <ar...@cfl.rr.com> wrote in message
news:e71201c1ab6e$48998f20$a4e62ecf@tkmsftngxa06...

Smurf

unread,
Feb 2, 2002, 9:08:33 PM2/2/02
to
What's the difference between unsafe and unmanaged code?


"Mattias Sjögren" <mattias.don...@mvps.org> wrote in message
news:#7X4V84qBHA.1864@tkmsftngp04...

Jonathan Allen

unread,
Feb 2, 2002, 11:42:45 PM2/2/02
to
Unsafe (also known as unverifiable) code includes code that uses pointers or
ignores type safety by using unions. Basically, any code that the OS cannot
verify is considered unsafe. Calls to COM Components or Win32 API's are also
unsafe.

Unmanaged code is code that doesn't run on the CLR and isn't compiled as IL
code.

VB.Net, C#, and JScript.Net can only produce managed code.

Since C# can use pointers, it is said to have the ability to produce unsafe
code. But as mentioned before, pointers are just one of many ways to render
your code unsafe.

C++ can produce both managed and unmanaged code. But since pointers are
integral in C++, it is always considered to be unsafe code.

--
Jonathan Allen

.Net Wish List Site: http://jonathan.cloverlink.com/

"Smurf" <eme...@optushome.com.au> wrote in message
news:Og#8abFrBHA.2432@tkmsftngp07...

0 new messages