VB.NET v C#
-
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 !
-
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
Megan Forbes wrote: This one still rocks! It's always been good Megan Forbes wrote: 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 ROTFLMAO.. Brilliant. I missed that post!!! :laugh: Regards, Brian Dela :-)
-
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 !
Paul Watson wrote: How so? It's actually more annoying. If you write a line that the compiler doesn't think is correct, it underlines it with the blue squiggly...while you're coding. I think it's better to have it build first and then it shows you your mistakes (not that it ever shows me any...I never make errors:-D).
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks -Shog9 teaching Mel Feik how to bookmark I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past. -Chris Maunder
-
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
Well I tend to point out (and irritate) Visual BASIC code monkey by pointing out what BASIC stands for. I.e Beginners All Symbolic Instruction Code. (and no, diplomacy is not my strong point... :-D )
-
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 !
Paul Watson wrote: Relax Ryan! You ripped off VB programmers and opened yourself up, so am just poking fun at you No problem Paul. I don't really hate VB programmers, but I do hate VB. I am currently taking a software engineering class where I am being forced to use VB, so I am just angry at the world right now. Ryan Johnston
-
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.;)
-
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: in a whiny, nasally voice You give those script-kiddies from Cape Town hell, don't you. Keep up the good work. ;) Cheers, Simon "From now on, if rogue states want to buy weapons of mass destruction, they're going to have to go on eBay," Mr. Bezos said.
-
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.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. As a former C++ programmer who is using VB.NET but has very little prior VB experience, I don't find anything messy in VB. You can get used to the syntax quickly. Ok, VB was not object-oriented, but it is now. What more do you want? ;) Chris Maunder wrote: 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 Somehow I find the IDE less responsive when using C#. Chris Maunder wrote: and even allows you to dive into fun stuff like unsafe code and pointers. Now, this is what I would call messy. ;P Chris Maunder wrote: C# is the true .NET language. The others are upgrades. If you ask Bill Gates, maybe he would say VB is the true .NET language, the rest are just simulations of VB. ;P ;P Seriously, I think the original poster should select VB.NET because most of his team are familiar with VB, why bother them with unimportant things such as semicolons?
-
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
-
Well I tend to point out (and irritate) Visual BASIC code monkey by pointing out what BASIC stands for. I.e Beginners All Symbolic Instruction Code. (and no, diplomacy is not my strong point... :-D )
-
Chris Maunder wrote: 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. As a former C++ programmer who is using VB.NET but has very little prior VB experience, I don't find anything messy in VB. You can get used to the syntax quickly. Ok, VB was not object-oriented, but it is now. What more do you want? ;) Chris Maunder wrote: 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 Somehow I find the IDE less responsive when using C#. Chris Maunder wrote: and even allows you to dive into fun stuff like unsafe code and pointers. Now, this is what I would call messy. ;P Chris Maunder wrote: C# is the true .NET language. The others are upgrades. If you ask Bill Gates, maybe he would say VB is the true .NET language, the rest are just simulations of VB. ;P ;P Seriously, I think the original poster should select VB.NET because most of his team are familiar with VB, why bother them with unimportant things such as semicolons?
Black Cat wrote: As a former C++ programmer who is using VB.NET but has very little prior VB experience, I don't find anything messy in VB. You can get used to the syntax quickly. Ok, VB was not object-oriented, but it is now. What more do you want? You never really came to grips with C++ then, VB = shite and a whole crock of the stuff, time to sit back and look at C#.
-
Chris Maunder wrote: C# is the true .NET language. The others are upgrades. but C++ is the real true language and real software engineers know it.
exactly. cheers, Chris Maunder
-
Megan Forbes wrote: This one still rocks! It's always been good Megan Forbes wrote: 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 ROTFLMAO.. Brilliant. I missed that post!!! :laugh: Regards, Brian Dela :-)
Brian Delahunty wrote: 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 ROTFLMAO.. Brilliant. I missed that post!!! Yep, it was a great start to today reading that :-D What a shame about the pigeon incident...
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