ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

Why C#.NET is preferred over VB.NET?

user-image
تم إضافة السؤال من قبل Imran Zabih , Senior Software Engineer , Foodpanda
تاريخ النشر: 2017/01/12
Fraz Ahmed
من قبل Fraz Ahmed , Software Developer , FACTS Computer Software House LLC

Technically, they share the same framework with same performance and memory characteristics and same type systems, so I find it hard to hard to split the two.

But just to mention a few that comes to mind is C# has

  • Better support for lambda expressions: IIRC, you can't write a lambda expression with a block body in VB.
  • Iterator blocks.(though now this is available on VB 10,but its worth a mention).
  • Syntax for extension methods (instead of decorating the method with an attribute)

Also better documentation and community for C# compared to VB.In C# you can have more fine tuned control over events/delegates.(But it is very rare one requires it.)

Naif Kraizem
من قبل Naif Kraizem , SAP ABAP Consultant , NTT Data

The C# and VB.Net are the programming languages, Booth can used in developing professional software but VB.Net is more easier than C# And C# more stable than VB.Net and it is more close with JAVA we can use it to coding the SAP One, back end of web application. 

Marking is the answer

Generally speaking both C# & VB.Net have the same performance and capabilities because both of them are a .Net languages so they have an access to the same framework libraries.

Basically Microsoft released C# in 2001 as a competitor to Sun Micro System's language called  Java which was release 1995 , Microsoft has made its syntax very close to Java and C++ languages but in the mean time Microsoft didn't want to lose its huge army of developers who used and loved its popular Visual Basic language for more than a decade  , so to make it easy for them to migrate to the new development framework Microsoft has created VB.Net as a marketing decision to attract the millions of Visual Basic 6.0 developers around the world .Nowadays C# is much more popular than VB.Net because it's so close to Java , C++ , JavaScript or even PHP , so anyone has an experience in such languages will be easy for him/her to understand C# syntax in a short time.

Wael Mohamed Mohamed Mohamed Emara
من قبل Wael Mohamed Mohamed Mohamed Emara , Accountant , Alexandria University Hospitals

A couple of points from me:

  • The language features across both languages are nearly identical (there are a few differences, like XML literals only being supported in VB.NET, however these are generally insignificant)
  • As you mentioned many of the examples are in C#
    • Similarly, I sense that Microsoft release samples for C# before they do for VB.NET
  • VB.NET has an (undeserved) stigma against it from certain members of the community
  • Microsoft announced the co-evolution of VB.NET and C# a couple of years ago which means that new features will go into both languages simultaneously
  • In my role as a consultant most of my engagements are C#, however a quick search on SEEK shows:
    • 2,416 jobs containing VB.NET in Australia
    • 2,651 jobs containing C# in Australia
  • I personally prefer C#'s terseness (e.g. x => { return ...; } vs Function(x) Return ... End Function)
  • Although it's a little painful most seasoned developers should be able to switch between the two comfortably within a couple of weeks

hilal saed essa
من قبل hilal saed essa , مدرب حاسب الي , تقنيات بلا حدود

Because it is native .NET language while VB is developed to work over >net framework.

Dheeraj Ahuja
من قبل Dheeraj Ahuja , IT Delivery Manager , Ola Money

In my opinion, bringing developers from different programing lang such as java, c++ must have been one of the most important motive of launching C#. The syntax and programming styles are almost same as they are in theses non-ms languages. apart from this, they are not different in terms of running and optimization the code as they both get convert to IL first. from features wise also, no significant differences are there between C# and VB.net. VB.Net.

Umair Khan
من قبل Umair Khan , Web Developer , Innovative Designers

The C# compiler targets .NET, thats why all code written in c# will always run using .NET framework.

This reflects that 

The architecture and methodologies of C# reflect the underlying methodologies of .NET.

In many cases, specific language features of C# actually depend on features of .NET.

 

Mostly C# language considered in parallel with the .NET framework.

 

Thats why C#.NET is preferred over VB.NET.

GAURAV SINGH
من قبل GAURAV SINGH

now a days developer are chosing to develop .net project in c#,becouse c# is similar to java this is the better one language expressing vb.net

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟