Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB.NET Versus C#

Status
Not open for further replies.

RedButterFly

Programmer
Dec 16, 2003
1
PH
Which is better VB.NET or C#?
Im just confuse on what to use between the two. Can anyone here knows the advantages/disadvantages of the 2 languages... Please... Thanks ;-(
 
As i know..(because i learn too)
VB-NET is focused in Desktop apps so is a good idea to start a desktop apps using VB-NET, although u can use it to develop a web app.
VC# is focused in Web apps, it's more reponsive in response and speed when this code flying in the NET (just because sucessor of C++), although C# can do desktop apps,

In my city many book using VC# when develop an app, and many book using VBNET when develop desktop apps

So use your sense and BE HAPPY
 
What ridifvx says is not strictly correct. C# is not more responsive in speed, and neither language is designed more readily for any particular types of application. C# is not a sucessor of C or C++ either. Check out the Microsoft White Paper, and here's a quick quote from that to get you started
‘…the key point to keep in mind is that .NET is intended to be language-independent. The choice between Visual Basic .NET and Visual C# .NET is typically based on your personal preference and past experience…’

Whatever language you use to write .Net applications in, they compile up to the Microsoft Intermediary Language, (MSIL), ready for the Just-In-Time, (JIT), comiler. There are a small number of things you can simply do in VB.net that are more complex to undertake with C# and vice versa, but generally it's a matter of preference, or knowing both, (or more, don't forget J# and managed C++), and selecting the best tool for the job when you know what you're trying to acheive.

The .Net framework is where the power is, and where you'll generally find more gains from writing applications using Visual Basic 6.0 for example. The choice of programming language with which to leverage the .Net framework is considerably more a choice of implementation, based on your given requirements and skill set.

Rhys

Be careful that the light at the end of the tunnel isn't a train coming the other way.
 
Yup. VB.NET or C# is just a matter of using what you're familiar with. Prefer Begin..End over { and }? Then use VB.NET. Prefer C#'s concise syntax over VB's wordiness? Then use C#. It all compiles to the same IL code.

The real power of .NET (and it's steepest learning curve) is the framework. I've found everything I need to write a general-purpose business app is already in the framework. And as an aside, many of the support questions here and in the C# forum are answered by "that is in the framework". You just have to know what something is called in order to find it in the docs. And that requires some study (the learning-curve part).

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
The last two postings are absolutely correct (for the most part). If you are familiar with VB6 then by all means go ahead and learn VB.NET. Your learning curve will be substantially shorter than trying to learn C#. BUT if your a new developer then I would highly recommend the additional effort required to learn C#. There are a few differences between C# and VB.NET. There are important differences in how VB.NET and C# implement Object Oriented (OOP) development.
 
Ok, the last three posts are excellent in explaining the answer... I guess I just want to put in my two cents.

When someone asks me the difference between C#.Net and VB.Net, I explain it to them this way:

"With the creation of VS.Net, MS has taken the bonuses of the Visual Basic language and incorporated them into the alternative languages available in Visual Studio. In turn, they have also added the bonuses of the alternative languages (by alternative, I mean in alternative to programming in VB) and added them into VB.Net. By doing this, all programmers are now programming on a level playing field. Sure, some things are harder to do in VB.Net than in C#.Net... and some things are harder the other way around... but now... because of VS.Net, we are all able to do them. At this point, all languages have become higher level, but the only choice is which language you are more proficient/comfortable with."
 
Here is the question you need to ask yourself.


Do you like squigglies?

if (bILikeSqiggles == True)
{
Console.WriteLine("Make me add semi colans please");
}
else
{
Console.WriteLine("VB.Net is the way to go!!!);
}

DotNetDoc
M.C.S.D.
---------------------------------------

Tell me and I forget. Show me and I remember. Involve me and I understand.
- Anonymous Chinese Proverb
-----------------------------------
If you can't explain it simply, you don't understand it well enough.
- A. Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top