VB.NET vs C#

6c301c866bd83b07323e88a609231111
0
cypher543 101 Apr 30, 2006 at 17:08

I finally got highspeed internet, so I was able to download the DirectX SDK. However, I’m in a bit of a bind…

Which should I use? VB.NET or C#? I don’t know any C#, but I’ve been using VB.NET for almost a year, and I understand it pretty well. But is C# better for game development? Are there any huge differences besides the syntax?

Thanks!

9 Replies

Please log in or register to post a reply.

860fe478a2545d6c07b88c759292499e
0
SmokingRope 101 Apr 30, 2006 at 22:17

Both languages are exactly the same except for syntax! You’re probably best off just using VB if you know it already. Everything get’s compiled into the same intermediate language and get’s run in the same Virtual Machine so your code’s going to run just as fast from either language. Especially if you’re more proficient in VB you’re going to be writing better code (thus faster code) in VB than you ever would get while still learning C#.

99f6aeec9715bb034bba93ba2a7eb360
0
Nick 102 Apr 30, 2006 at 23:46

Visual Basic is a dying language. For good reasons! It’s syntax is just horrible compared to any C-based language.

C# was desinged from the start to be a nice and easy language for .NET. And knowing C syntax is a big plus for any other programming project. You’re going to have to learn it sooner or later anyway.

6c301c866bd83b07323e88a609231111
0
cypher543 101 May 01, 2006 at 01:37

Yes… Visual Basic is a dying language. However, Visual Basic .NET is not. It’s syntax is clean and straightforward, imho.

065f0635a4c94d685583c20132a4559d
0
Ed_Mack 101 May 01, 2006 at 17:03

I thought visual basic had a massive developer base? I had to use it in school and hated it, but it’s probably not aimed for programmers.

Da26e799270ce5e8b62659ed77b11cef
0
Axel 101 May 01, 2006 at 17:05

If you start a new project: Definitely go for C#!

8c72dcc39b44052d5500c2264b2e4771
0
Ethanbot 101 May 02, 2006 at 16:11

@Axel

If you start a new project: Definitely go for C#!

I think a better suggestion would have been:

If you start a new project, use what you know, but don’t feel obliged to adhere to only one language. Start a few smaller projects in C# and get a feel for it. If you like it, go ahead and port what you have done on your project to C# and finish writing it.

Good luck =)

878aef26c9c578084c44642e137f001f
0
kooper 101 May 26, 2006 at 07:57

i say go for C#
theres much more support for it in terms of programming for direct x

A12bd300830b515d8bba1f816678d330
0
harakim 101 May 26, 2006 at 19:14

C# is the new VB. If I were you, I’d still write it in VB.

885a3ffe62609ebdcdecd72365aa7a3b
0
darqSHADOW 101 May 27, 2006 at 04:53

SmokingRope is right, they are exactly the same from the runtime standpoint, so if you are going to write better code with VB.Net then most definately stick with it. Granted, most of your knowledge will translate over to C# without much of a problem, there are subtile differences which will take a little retraining to learn. ;) As for the marketplace, at this moment VB.Net programmers are one of the hottest career paths. This past week alone I’ve turned down 5 new contracts for VB.net app and web projects. C# is popular, but I still believe VB.Net has an edge at this point.

DS