Click to See Complete Forum and Search --> : To C# or not To C#
BG
Feb 6th, 2002, 01:19 AM
Aight, has anyone played with C#. I've been using vb instead of visual C++ because I havn't had to. Are ther any major advantages to C# over vb.net?
DevGrp
Feb 6th, 2002, 08:57 AM
Not really. C# and VB.net performs virtually the under the .net framework. I think its a matter of preference.
If you like the C++ or Java like syntax of C#, then go with C#, or if you like the VB syntax, then go with vb.net.
However C# does have a few advantages over vb.net, but its mostly complex, for example pointers. You can declare pointers explicitly in C# but you would have to use the unsafe keyword, since you would be using it in a managed environment.
If you know C#, then it would be fairly easy to do the same thing in VB.NET, by only changing the syntax.
Right I'm writing a program in C# after switching from VB.NET. It took me 1 night to re-write the code which took me 2 nights in vb.net. That was possible because I already knew the C++ syntax and because C# and vb.net does practically everything the same way.
Hope that helps
BG
Feb 6th, 2002, 11:54 AM
Yup, That's what I was hoping to hear. Thanks.
Scott Penner
Feb 7th, 2002, 03:39 PM
If you are dealing with unmanaged c++ code, c# might have a slight advantage.
VB.net doesn't do some of the value types that are common in C++, like ushort and ulong etc.
That's probably one of the few things VB.net can't do that c# can. Otherwise it's just your preference in syntax.
One last thing, and everyone can correct me if I'm wrong, but it seemed like MSDN had more examples in C# than VB...
I could be wrong. :D
Cander
Feb 7th, 2002, 03:46 PM
no you are right. MS is trying to drill it down people throats..namely Java developers. The realize VB examples wont bring in the C and Java devs, so they show as much c# as possible.
Jethro
Feb 7th, 2002, 06:38 PM
That C# stuff was a suprised, we loaded it out of interest, then thought what a load of crap;) Just go with vb
DevGrp
Feb 7th, 2002, 08:55 PM
C# kicks ass
Jethro
Feb 7th, 2002, 09:16 PM
Originally posted by DevGrp
C# kicks ass
How so?
DevGrp
Feb 7th, 2002, 10:52 PM
That C# stuff was a suprised, we loaded it out of interest, then thought what a load of crap Just go with vb
You probably have'nt used any other language other than VB.
Try it, and you'll see. Although you can do the same thing in VB.NET and C#. The code in C# is alot cleaner. Event handling is also simpler than VB.NET's event handling.
Jethro
Feb 7th, 2002, 10:58 PM
Originally posted by DevGrp
You probably have'nt used any other language other than VB.
Try it, and you'll see. Although you can do the same thing in VB.NET and C#. The code in C# is alot cleaner. Event handling is also simpler than VB.NET's event handling.
Er actually
VB
Delphi
C
C++
COBOL
Universe Basic
SB+
Progress
Pick Basic
Information Basic
System Builder
Revelation
Open Access
and probably a few more that don't use currently;)
Scott Penner
Feb 7th, 2002, 11:19 PM
Er...regardless,
DevGrp is right. C# is cool!
All I'm saying is don't knock it 'till you try it. The ease of use of VB is there without all the sissy for / next, sub / end sub rigamarole. And, you can't beet the += syntax for adding delegates to events etc.
I programmed with VB for years, but I can't imagine going back and doing VB.net after learning C#. It's just a chore to me now.
Anyway, take it or leave it. But, that's my two bits.
Scott Penner
Feb 7th, 2002, 11:20 PM
oops you beat me to the response DevGrp :(
(you're still right)
BG
Feb 8th, 2002, 12:02 PM
OK, I have been using C# and vb.net for a week. I have used C++ in the past and this helped out a lot. C# is much cleaner and eaiser to understand(If you have used C before). Unfortunatly I'm the only on one my development team who has so looks l'm going to have to use vb for the user interface stuff. At least I can use C# for the stuff no one else will ever have to work with :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.