Friday, July 31, 2009

VB.Net versus C#.Net, which is a better in the long run?

I'm taking Programming courses and I have the choice of VB or C#. What is must commonly used in business or programming and which will develop my skills for programming?

VB.Net versus C#.Net, which is a better in the long run?
I recommend using C# primarily because it is the most popular .Net language among Microsoft's own employed developers, and it is a much more elegant and less wordy language. One thing I never liked about VB in comparison to C# is a declaration statement:





C#:


string strExample = null;





VB:


Dim strExample as String = Nothing





Nearly double the typing to accomplish the same thing. May not seem like a big difference, but imagine the added typing while writing an enterprise-level application.





An important thing to note about C# and VB is that they share the same runtime library, the .Net framework. The real power of these languages comes from the class libraries that are provided by the .Net framework. In fact, if you make good use of the framework classes, the bulk of your lines of code will differ only by the semicolon that is required at the end of a line of code in C# that is not used in VB.
Reply:C# is a much more powerful and elegant programming language. It will enable you to write better programs.





Also, you can count on C# receiving long term support from Microsoft if you are interested in developing Windows applications. Don't expect VB to be relevant for much longer.
Reply:VB.Net, best for bussiness and application side, c# website bussiness mean better
Reply:If you're familiar with c++ or java. Then C#.Net. You'll be able to learn the concepts of object oriented programming through this.





While VB.Net comes from the family of vb.
Reply:You can appreciate more of the concepts of OOP if you will go for C#.NET. From my experience as a programming instructor, those VB programmers (I mean VB6) find it hard to learn the concepts of OOP. OOP is a standard programming paradigm.


No comments:

Post a Comment