I am kind of restarting my ASP.Net journey after nearly a gap of two years. When I used to visit this very site earlier and many other "official" site, the examples provided would be exactly the same in number both in C# and Visual Basic, now I see many
examples only provided in C#, I dont want to get opinionated here, but frankly is Microsoft and the Community sending a signal that VB isnt a preferred language and to be used almost similar to a "deprecated" language that exists only for backward compatibility.
I am trying to make choices for a new project that we are developing using ASP.Net MVC, and I really dont want to make a choice based on my past experiences.
Microsoft is fully committed to VB. We try to provide VB code with our tutorials. A review of non-Microsoft ASP.MVC blogs shows they are almost all based on C# and generally don't provide a VB.
Thanks for that answer ricka, I was specially excited about the music store example, which I found only in C#, do you know a place where I can get a similar/ same example in vb.
Any help is appreciated, I am surprised that previous two replies (one mine and one other member) got deleted (or disappeared)
I am passionated about MVC - and I maintain a blog with (mostly) MVC examples / tutorials and so on.
I was beginning programming with VB3 ( ok, Fortran does not count...) and , when .NET arrived, I have passed on C# ( my manager comes from a C++ experience)
Now I program mostly (99.99% ) in C# - so my examples are in C#.
Writing blog posts is expensive as time - and will be more if I translate my examples in VB.NET. And take note that I am not paid for that - so I can choose my posts and my language.
The same is for the community - they wrote the examples in one language.
ignatandrei Thank you for your message I completely agree with you that based on your expertise you can only provide examples in one language, my question is more towards "is everyone here going your way", while I dont mind taking the road less travelled
I wanted to do a pulse check on why even MS here
has provided the example just in C#, please note I would have been equally surprised (though I may not have expressed it as openly as I do now) if the examples were only provided in VB.
Thanks once again, As I mentioned earlier I am kind of restarting and so really wanted to find options.
ignatandrei
And , in my opinion, it's a false problem you put here.Program in what you like !
But thank you, your response is valuable, and I am genuinely happy that this forum provides me an opportunity to interact with people like you (of course without paying).
imho, much of the answer to your question has to do with the effect of classical
supply and demand.
imho, Microsoft is less committed to vb than to c# ...
skvignesh, you asked "Why are there more code examples in C# in the official site"
i'm assuming you mean the MVC sub forum at ASP.NET MVC
http://forums.asp.net/1146.aspx since that is where you've posted your question ...
i'm guessing that the team that is most likely to post material here in the
MVC sub forum is likely to be developers from the ASP.NET MVC 3/4 team ...
those developers have been using c# to develop the ASP.NET MVC frameworks since the original ASP.NET MVC CTP a few years ago.
i'm guessing it's more convenient for them to develop the tutorials in
c#, the same language as the open source code used for the framework.
for the last fiew years, i've noticed that open source frameworks like
ASP.NET MVC, xUnit.net, moq, and more are being developed in
c# ...
also, i spend a lot of time on other sites and it appears that developers are using
vb less frequently.
i'm guessing you will continue to see many but not all of the c# examples created by Microsoft staff eventually come out also as
vb examples but it would not surprise me if that trend becomes less frequent over time ...
i been programming since 1967 and i have my own opinions about a number of different computer languages that i can justify, however, i'm not going to do that here.
imho, if Microsoft is going to do examples in c# and
vb, then it would be appropriate for Microsoft to also provide the examples in
c++ and F#.
skvignesh, i have spent months applying for industry jobs and in the Microsoft, non Java world, the majority of those Microsoft platform jobs are for
c# programmers, especially the higher paying jobs.
i'm guessing that even vb is developed in c#
(i could be wrong).
i'm guessing that as the demand for vb continues to decrease, you will see fewer and fewer examples in
vb coming from Microsoft.
today, via Google: site:msdn.microsoft.com asp.net mvc example.cs ==> 42 hits
today, via Google: site:msdn.microsoft.com asp.net mvc example.vb ==> 31 hits
Basically,
skvignesh, it appears statisically the even Microsoft is paying far less attention to
vb than it is to c#.
Yes, the vb language team will continue to evolve vb and the
c# language team will continue to evolve c#.
skvignesh, FWIW, imho, i recommend that you seriously consider learning
c# if you do not already know it ... many good examples outside of the Microsoft websites are in
c# only.
at http://stackoverflow.com, the
vb tag currently has 459 followers while the c# tag has c.
25400+ followers.
skvignesh, if you're curious, you might ask Google
is visual basic dead?
regards,
gerry
B-) Please help me by completing my school survey about computer programmers on my website. Thank you!!! Gerry Lowry +1 705-429-7550 wasaga beach, ontario, canada
Marked as answer by skvignesh on Mar 25, 2012 07:53 AM
WhileI may not agree with many of the opinions you have raised it is certainly a fact that c# is preferred over vb in many places, if I do not agree, I would just be in denial mode. But quite frankly I like VB for the sake of it being more readable.
I can understand c# (ok agreed not as much as vb), but very much like I can understand many real world languages, but when I speak, unless the forum requires, I still prefer to speak in my mother tongue.
I think the purpose of raising this question was exactly what you and others have answered directly or indirectly (the devs did the samples, not MS). This awareness actually helps me make decisions.
skvignesh
Contributor
2670 Points
512 Posts
Why are there more code examples in C# in the official site
Mar 24, 2012 02:48 PM|LINK
Hello All
I am kind of restarting my ASP.Net journey after nearly a gap of two years. When I used to visit this very site earlier and many other "official" site, the examples provided would be exactly the same in number both in C# and Visual Basic, now I see many examples only provided in C#, I dont want to get opinionated here, but frankly is Microsoft and the Community sending a signal that VB isnt a preferred language and to be used almost similar to a "deprecated" language that exists only for backward compatibility.
I am trying to make choices for a new project that we are developing using ASP.Net MVC, and I really dont want to make a choice based on my past experiences.
S.K.Vignesh
ricka6
All-Star
15070 Points
2272 Posts
Microsoft
Moderator
Re: Why are there more code examples in C# in the official site
Mar 24, 2012 04:25 PM|LINK
Microsoft is fully committed to VB. We try to provide VB code with our tutorials. A review of non-Microsoft ASP.MVC blogs shows they are almost all based on C# and generally don't provide a VB.
skvignesh
Contributor
2670 Points
512 Posts
Re: Why are there more code examples in C# in the official site
Mar 24, 2012 04:45 PM|LINK
Thanks for that answer ricka, I was specially excited about the music store example, which I found only in C#, do you know a place where I can get a similar/ same example in vb.
Any help is appreciated, I am surprised that previous two replies (one mine and one other member) got deleted (or disappeared)
S.K.Vignesh
ignatandrei
All-Star
134541 Points
21586 Posts
Moderator
MVP
Re: Why are there more code examples in C# in the official site
Mar 24, 2012 07:29 PM|LINK
I am passionated about MVC - and I maintain a blog with (mostly) MVC examples / tutorials and so on.
I was beginning programming with VB3 ( ok, Fortran does not count...) and , when .NET arrived, I have passed on C# ( my manager comes from a C++ experience)
Now I program mostly (99.99% ) in C# - so my examples are in C#.
Writing blog posts is expensive as time - and will be more if I translate my examples in VB.NET. And take note that I am not paid for that - so I can choose my posts and my language.
The same is for the community - they wrote the examples in one language.
So it's a question of time - not of preference...
skvignesh
Contributor
2670 Points
512 Posts
Re: Why are there more code examples in C# in the official site
Mar 25, 2012 01:44 AM|LINK
ignatandrei Thank you for your message I completely agree with you that based on your expertise you can only provide examples in one language, my question is more towards "is everyone here going your way", while I dont mind taking the road less travelled I wanted to do a pulse check on why even MS here
http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-1
has provided the example just in C#, please note I would have been equally surprised (though I may not have expressed it as openly as I do now) if the examples were only provided in VB.
S.K.Vignesh
ignatandrei
All-Star
134541 Points
21586 Posts
Moderator
MVP
Re: Why are there more code examples in C# in the official site
Mar 25, 2012 05:48 AM|LINK
I can provide them in VB.NET too. The problem is time, not knowledge. Do you want to pay for my time to translate? ;-)
Same reason. MVC Music Store is not MS - it from developers( OK, working at MS, but doing in their time)
Look at this tutorial from Stephen Walter - it is done in VB
http://www.asp.net/mvc/tutorials/overview/understanding-models-views-and-controllers-vb
Look at this tutorial:
http://msdn.microsoft.com/en-us/library/gg508808%28VS.98%29.aspx
Have VB and C# code.
And , in my opinion, it's a false problem you put here.Program in what you like !
skvignesh
Contributor
2670 Points
512 Posts
Re: Why are there more code examples in C# in the official site
Mar 25, 2012 06:31 AM|LINK
Thanks once again, As I mentioned earlier I am kind of restarting and so really wanted to find options.
But thank you, your response is valuable, and I am genuinely happy that this forum provides me an opportunity to interact with people like you (of course without paying).
S.K.Vignesh
ignatandrei
All-Star
134541 Points
21586 Posts
Moderator
MVP
Re: Why are there more code examples in C# in the official site
Mar 25, 2012 07:23 AM|LINK
Joke aside:
Program in C#. you will find more examples. The olders VB programmers like me have become C# - managers faute!
gerrylowry
All-Star
20513 Points
5712 Posts
Re: Why are there more code examples in C# in the official site
Mar 25, 2012 07:37 AM|LINK
@ skvignesh
imho, much of the answer to your question has to do with the effect of classical supply and demand.
imho, Microsoft is less committed to vb than to c# ... skvignesh, you asked "Why are there more code examples in C# in the official site"
i'm assuming you mean the MVC sub forum at ASP.NET MVC http://forums.asp.net/1146.aspx since that is where you've posted your question ...
i'm guessing that the team that is most likely to post material here in the MVC sub forum is likely to be developers from the ASP.NET MVC 3/4 team ...
those developers have been using c# to develop the ASP.NET MVC frameworks since the original ASP.NET MVC CTP a few years ago.
i'm guessing it's more convenient for them to develop the tutorials in c#, the same language as the open source code used for the framework.
for the last fiew years, i've noticed that open source frameworks like ASP.NET MVC, xUnit.net, moq, and more are being developed in c# ...
also, i spend a lot of time on other sites and it appears that developers are using vb less frequently.
i'm guessing you will continue to see many but not all of the c# examples created by Microsoft staff eventually come out also as vb examples but it would not surprise me if that trend becomes less frequent over time ...
i been programming since 1967 and i have my own opinions about a number of different computer languages that i can justify, however, i'm not going to do that here.
MORE INFORMATION
Let's look for example at "MvcRouteHandler Class"
at http://msdn.microsoft.com/en-us/library/system.web.mvc.mvcroutehandler.aspx, the MvcRouteHandler syntax is given for c#, c++, and vb.
why not also for Microsoft's newest language F#?
imho, if Microsoft is going to do examples in c# and vb, then it would be appropriate for Microsoft to also provide the examples in c++ and F#.
skvignesh, i have spent months applying for industry jobs and in the Microsoft, non Java world, the majority of those Microsoft platform jobs are for c# programmers, especially the higher paying jobs.
i'm guessing that even vb is developed in c# (i could be wrong).
i'm guessing that as the demand for vb continues to decrease, you will see fewer and fewer examples in vb coming from Microsoft.
today, via Google: site:msdn.microsoft.com asp.net mvc example .cs ==> 42 hits
today, via Google: site:msdn.microsoft.com asp.net mvc example .vb ==> 31 hits
---
http://msdn.microsoft.com/en-us/data/gg558520 "T4 Templates and the Entity Framework", Scott Allen, January 2011
-- sample code for the above article is c# only
Basically, skvignesh, it appears statisically the even Microsoft is paying far less attention to vb than it is to c#.
Yes, the vb language team will continue to evolve vb and the c# language team will continue to evolve c#.
skvignesh, FWIW, imho, i recommend that you seriously consider learning c# if you do not already know it ... many good examples outside of the Microsoft websites are in c# only.
at http://stackoverflow.com, the vb tag currently has 459 followers while the c# tag has c. 25400+ followers.
skvignesh, if you're curious, you might ask Google is visual basic dead?
regards,
gerry
skvignesh
Contributor
2670 Points
512 Posts
Re: Why are there more code examples in C# in the official site
Mar 25, 2012 07:53 AM|LINK
Hi gerry
WhileI may not agree with many of the opinions you have raised it is certainly a fact that c# is preferred over vb in many places, if I do not agree, I would just be in denial mode. But quite frankly I like VB for the sake of it being more readable.
I can understand c# (ok agreed not as much as vb), but very much like I can understand many real world languages, but when I speak, unless the forum requires, I still prefer to speak in my mother tongue.
I think the purpose of raising this question was exactly what you and others have answered directly or indirectly (the devs did the samples, not MS). This awareness actually helps me make decisions.
Thank you all.
S.K.Vignesh