PDA

View Full Version : C# or VB6/net


Anishgiri
08-25-2010, 03:52 AM
For those who have tried both. Which is harder to learn? And which is better suited for database systems such as Employee time records system, Inventory system, etc.

Also which language do you prefer and why.

ghell
08-26-2010, 11:33 AM
C# and VB.net are essentially the same language with a slightly different syntax.

C#:
if (a == b)
{
Console.WriteLine(c);
}

C#:
If a = b Then
Console.WriteLine(c)
End If

Aside from a couple of small compiler defaults that you could override anyway, it compiles into the same thing.

VB6 runs natively but you need Visual Basic (not free) to create it and it isn't all that great when you can just use something like C/C++ instead.

"Why Microsoft abandoned visual basic 6 in favour of visual basic .NET (http://www.itwriting.com/frozenvb6.php)" may be useful to you.


I recommend C#. It's generally more used than VB.net and is similar in syntax to other useful languages such as C, C++ and Java (because they are all based on C syntax)

john_collins
08-26-2010, 06:56 PM
I prefer .NET and specifically C#.