VB.Net is better then C# in web development......if not then why
-
-
The best language for you is the one that you write the best code in. It doesn't matter how good a language is if you can't use it. When it comes to performance or capabilities, the differences between VB.NET and C# is not that big. Personally I prefer C# mostly because of the structure of the language, and the strict type checking. VB lets you get away with automatic conversions that really isn't good for you. For example, this works in VB:
Dim Cnt As String Cnt = 1 Cnt = Cnt + 1
The result is that the string Cnt now contains "2" as VB automatically converts the value back and forth between strings and integers, so it works more or less as intended. The problem is that the conversions makes the code take about 600 times longer than if you would have used an integer variable instead. Imagine if you use this is a loop... Of course C# doesn't let you write such garbage. ;)--- b { font-weight: normal; }
-
The best language for you is the one that you write the best code in. It doesn't matter how good a language is if you can't use it. When it comes to performance or capabilities, the differences between VB.NET and C# is not that big. Personally I prefer C# mostly because of the structure of the language, and the strict type checking. VB lets you get away with automatic conversions that really isn't good for you. For example, this works in VB:
Dim Cnt As String Cnt = 1 Cnt = Cnt + 1
The result is that the string Cnt now contains "2" as VB automatically converts the value back and forth between strings and integers, so it works more or less as intended. The problem is that the conversions makes the code take about 600 times longer than if you would have used an integer variable instead. Imagine if you use this is a loop... Of course C# doesn't let you write such garbage. ;)--- b { font-weight: normal; }
You also have operators that do one thing, and one thing only: e.g. in VB.net, this:
"A string " & " concatenated."
works the same as this:"A string " + " also concatenated."
Which makes it interesting when you take Guffa's post about implicit conversion of numbers etc... -
Silly answer, but very much true: vb.net is WORDY as he#$. I can easily identify different blocks of code in a c# document thanks to the symbol usage, but not in vb (IF... ENDIF... what's up with that?!?). Also, its syntax is close to c++ and java, so it keeps my skills functional on all those languages. Besides, if you want to be a "marketable" programmer, stick with c#, they get more/better opportunities.
Nila "...for that, I will need a large cup of coffee and a brand muffin!" -Samantha Bea
-
This is an age old debate and there are countless examples of this debate on the internet. my advice to you, is that both languages use the .NET framework, so in essence niether are any better than each other. At the end of the day the language choice is that of the developer as to what syntax they prefer. I personally use both on a daily basis, and don't really care which one I use. It is up to the client as to which one they prefer to support and what skills they have in house to support the application.
Kind Regards, Gary