VB.NET v C#
-
Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers
-
Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers
VB.NET is, IMO, a little too messy. It tries to maintain backwards code compatibility while still being a .NET language. The original modifications were watered down by VB programmers who complained loudly and in a whiny, nasally voice. C#, on the other hand, was designed from the groud up specifically for .NET. It's clean, has no skeletons in the closet, uses efficient C style syntax and even allows you to dive into fun stuff like unsafe code and pointers. C# is the true .NET language. The others are upgrades. cheers, Chris Maunder
-
VB.NET is, IMO, a little too messy. It tries to maintain backwards code compatibility while still being a .NET language. The original modifications were watered down by VB programmers who complained loudly and in a whiny, nasally voice. C#, on the other hand, was designed from the groud up specifically for .NET. It's clean, has no skeletons in the closet, uses efficient C style syntax and even allows you to dive into fun stuff like unsafe code and pointers. C# is the true .NET language. The others are upgrades. cheers, Chris Maunder
Chris Maunder wrote: VB programmers who complained loudly and in a whiny, nasally voice :laugh:
I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages
-
Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers
I too agreed that VB.NET is a little messy..But sometimes people who never programmed in C family of languages (C++, Java etc) prefer to use the old VB style. Though VB.NET is not the old VB, some people prefer that. I personally prefer C# over VB.NET.. The only advantage I can see with VB.NET is better intellisense support in Visual Studio.NET. That also not very much...On the other hand C# gives more cleaner syntax...does not carry any baggage from old language(as in the case of VB.NET) Madhu.
-
Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers
Most future "sophisticated" features will be put first in C# or will not put in VB.NET at all, e.g., templates. Imagine a VB programmer, who daily does this for food:
Dim i as Integer
i = Text1Where Text1 is a TextBox which have a Text default property, of string type, which will be automagically converted to Integer. Can you imagine them using templates or defining iterators? No, and so won't Microsoft. My latest article: SQL Server DO's and DONT's[^]
-
Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers
C# supports embedded XML to comment your code, which then can generate on-line reference documentation using FREE tools. VB.NET does not. Is that a good enough reason? Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
Help! I'm an AI running around in someone's f*cked up universe simulator. -
Chris Maunder wrote: VB programmers who complained loudly and in a whiny, nasally voice :laugh:
I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages
Like Muslims. (see sig) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
Help! I'm an AI running around in someone's f*cked up universe simulator. -
C# supports embedded XML to comment your code, which then can generate on-line reference documentation using FREE tools. VB.NET does not. Is that a good enough reason? Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
Help! I'm an AI running around in someone's f*cked up universe simulator.Marc Clifton wrote: C# supports embedded XML to comment your code, Since when did VB programmer start commenting their code. Isn't their motto, it was easy to write so it must be easy to understand :-D Michael Life’s not a song. Life isn’t bliss. Life is just this. It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
-
Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers
-
Like Muslims. (see sig) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
Help! I'm an AI running around in someone's f*cked up universe simulator.Let's not have religious wars here. Please? cheers, Chris Maunder
-
Marc Clifton wrote: C# supports embedded XML to comment your code, Since when did VB programmer start commenting their code. Isn't their motto, it was easy to write so it must be easy to understand :-D Michael Life’s not a song. Life isn’t bliss. Life is just this. It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
I'm tired of this. Since when did some one who spews VB become a programmer? Looking at VB "code" is like seeing someone throw up all over my screen. Ryan Johnston
-
Has anybody found any good web sites which can give a convincing argument as to which .NET language to switch to from VS6? I work with a large number of VB programmers and I think they will opt to go for VB.NET, whereas I prefer languages which use the semi-colon. I know that both C# and VB.NET both compile to the same CLR, but we will prohbably want all our code to be in the one language. Hence I would like to have a convincing argument as to which language we should adopt. Cheers
Andy H wrote: whereas I prefer languages which use the semi-colon. That sounds so dirty. :-O I have nothing useful to input, as usual.
David Wulff http://www.davidwulff.co.uk
"Life, as well as software, has bugs." - Roger Wright
-
If you have a COM DLL that calls a interop COM DLL: on C#, the IDE can handle this with a property (IIRC, "Wrapper Assembly Key File"). On VB.NET, you need to manually call tlbimp.exe. The problem is, sometimes tlbimp.exe does not recognizes a importlib("msadoxx.tlb") to ADO (don't ask me why) and generates an extraneous ADODB.DLL, intead of using the PIA. This causes the behaviour you mentioned. I had to do my own tlbImp to handle this. C# does this correctly, but we still have legacy VB code. My latest article: SQL Server DO's and DONT's[^]
-
Andy H wrote: whereas I prefer languages which use the semi-colon. That sounds so dirty. :-O I have nothing useful to input, as usual.
David Wulff http://www.davidwulff.co.uk
"Life, as well as software, has bugs." - Roger Wright
David Wulff wrote: That sounds so dirty Only you could make that sound dirty Dave!!! ;P Regards, Brian Dela :-)
-
Let's not have religious wars here. Please? cheers, Chris Maunder
Let's not have religious wars here. Please? Yes sir. Sorry! (Hmmm. No smiley face. I'm in troooubbbbbllllllle!) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
Help! I'm an AI running around in someone's f*cked up universe simulator. -
I'm tired of this. Since when did some one who spews VB become a programmer? Looking at VB "code" is like seeing someone throw up all over my screen. Ryan Johnston
How do you do that cool red-to-black affect?!?!? (I don't have the time to look at the HTML code right now--maybe later!) Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
Help! I'm an AI running around in someone's f*cked up universe simulator. -
Let's not have religious wars here. Please? Yes sir. Sorry! (Hmmm. No smiley face. I'm in troooubbbbbllllllle!) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
Help! I'm an AI running around in someone's f*cked up universe simulator.Marc Clifton wrote: (Hmmm. No smiley face. I'm in troooubbbbbllllllle!) Nah.. just that that sort of stuff in the lounge is a major no, no. Personally I think it's a major no, no on CP itself but the soapbox can turn up some weird stuff. Regards, Brian Dela :-)
-
Like Muslims. (see sig) :-D Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
Help! I'm an AI running around in someone's f*cked up universe simulator.Marc Clifton wrote: Help! I'm an AI running around in someone's f*cked up universe simulator This one still rocks! :-D
I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages
-
I too agreed that VB.NET is a little messy..But sometimes people who never programmed in C family of languages (C++, Java etc) prefer to use the old VB style. Though VB.NET is not the old VB, some people prefer that. I personally prefer C# over VB.NET.. The only advantage I can see with VB.NET is better intellisense support in Visual Studio.NET. That also not very much...On the other hand C# gives more cleaner syntax...does not carry any baggage from old language(as in the case of VB.NET) Madhu.
Madhu _Cheriyedath wrote: The only advantage I can see with VB.NET is better intellisense support in Visual Studio.NET VB.NET has better intellisense than C#? How so?
Paul Watson
Bluegrass
Cape Town, South AfricaColin Davies wrote: ...can you imagine a John Simmons stalker !
-
How do you do that cool red-to-black affect?!?!? (I don't have the time to look at the HTML code right now--maybe later!) Marc Obviously it is not all Muslims. Just like all VB programmers are not bad...both groups tend to cause trouble, get excited and do stupid things. -- Paul Watson
Help! I'm an AI running around in someone's f*cked up universe simulator.Marc Clifton wrote: How do you do that cool red-to-black affect?!?!? He used VB... ;P Actually here is the code to do it, looks like something a VB programmer would produce:
<font color='#FF0000'>R</font>
<font color='#EE0000'>y</font>
<font color='#DD0000'>a</font>
<font color='#CC0000'>n</font>
<font color='#BB0000'>J</font>
<font color='#AA0000'>o</font>
<font color='#990000'>h</font>
<font color='#880000'>n</font>
<font color='#770000'>s</font>
<font color='#660000'>t</font>
<font color='#550000'>o</font>
<font color='#440000'>n</font>* Relax Ryan! You ripped off VB programmers and opened yourself up, so am just poking fun at you :-D
Paul Watson
Bluegrass
Cape Town, South AfricaColin Davies wrote: ...can you imagine a John Simmons stalker !