VB 2015 or C# 6
-
I am about to embark on some web development and the question is - VB 2015 or C# 6? I am a Visual Basic man right back from Sinclair's first ZX Spectrum. Since then, any programming I've had to do was usually in VB. I even contracted for a large company and wrote a number of large programs in VB. Since I've been dabbling in websites, I've used C# for the odd bit of coding I've needed but am not familiar with the latest assemblies; C# 3.0, possibly 4.0, was the last I used. I now want to try and re-write a site for my Bowling Club with the look and feel of Win10 using Bootstrap/Bootmetro. There is an SQL Server database holding the last 4 years worth of information currently set up which is currently displayed by a poor front-end website. I want to recode the website using VS 2015 ASP.NET Core 1.0 and either VB 2015 or C# 6.0, but which? Thank you for the replies below which all say "Go with C#". That I will do. I have found another reason to go with it - ASP.NET Core 1.0 doesn't support VB.
.NET will allow a lot of sharing amongst program pieces (DLL's, for example) - and they use the same set of procedures and namespaces. That being said, C# follows the "C" syntax/structure - which is far and away the most often used structural design out there. It prepares you for then, now, and the future much more thoroughly.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
-
I am about to embark on some web development and the question is - VB 2015 or C# 6? I am a Visual Basic man right back from Sinclair's first ZX Spectrum. Since then, any programming I've had to do was usually in VB. I even contracted for a large company and wrote a number of large programs in VB. Since I've been dabbling in websites, I've used C# for the odd bit of coding I've needed but am not familiar with the latest assemblies; C# 3.0, possibly 4.0, was the last I used. I now want to try and re-write a site for my Bowling Club with the look and feel of Win10 using Bootstrap/Bootmetro. There is an SQL Server database holding the last 4 years worth of information currently set up which is currently displayed by a poor front-end website. I want to recode the website using VS 2015 ASP.NET Core 1.0 and either VB 2015 or C# 6.0, but which? Thank you for the replies below which all say "Go with C#". That I will do. I have found another reason to go with it - ASP.NET Core 1.0 doesn't support VB.
C#. AFAIK VB lacks the syntax for some capabilities, whihc is dumb since both are CLR based languages. Go with C#.
DURA LEX, SED LEX GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
-
I am about to embark on some web development and the question is - VB 2015 or C# 6? I am a Visual Basic man right back from Sinclair's first ZX Spectrum. Since then, any programming I've had to do was usually in VB. I even contracted for a large company and wrote a number of large programs in VB. Since I've been dabbling in websites, I've used C# for the odd bit of coding I've needed but am not familiar with the latest assemblies; C# 3.0, possibly 4.0, was the last I used. I now want to try and re-write a site for my Bowling Club with the look and feel of Win10 using Bootstrap/Bootmetro. There is an SQL Server database holding the last 4 years worth of information currently set up which is currently displayed by a poor front-end website. I want to recode the website using VS 2015 ASP.NET Core 1.0 and either VB 2015 or C# 6.0, but which? Thank you for the replies below which all say "Go with C#". That I will do. I have found another reason to go with it - ASP.NET Core 1.0 doesn't support VB.
If you're looking to use ASP.Net Core, it's worth remembering that .NET Core doesn't yet support Visual Basic. If you'll be running on Windows using the full CLR and .NET Framework, you could still write most of your app logic in VB if you want to - your ASP.NET web app would be in C#, but you could have a separate VB project that you reference from your web app. Of course, even that isn't so simple right now. In VS2015, if you add a regular .NET class library project to a solution that already contains an ASP.NET core application, you can't just add a reference to the class library project from the ASP.NET Core project. You'll have to build the class library first and reference the .dll. That restriction will probably be gone in VS2017. .NET Core projects will be switching back to using .csproj instead of project.json. The VS2015 .NET Core tooling doesn't currently support that, but VS2017 RC does.
-
I am about to embark on some web development and the question is - VB 2015 or C# 6? I am a Visual Basic man right back from Sinclair's first ZX Spectrum. Since then, any programming I've had to do was usually in VB. I even contracted for a large company and wrote a number of large programs in VB. Since I've been dabbling in websites, I've used C# for the odd bit of coding I've needed but am not familiar with the latest assemblies; C# 3.0, possibly 4.0, was the last I used. I now want to try and re-write a site for my Bowling Club with the look and feel of Win10 using Bootstrap/Bootmetro. There is an SQL Server database holding the last 4 years worth of information currently set up which is currently displayed by a poor front-end website. I want to recode the website using VS 2015 ASP.NET Core 1.0 and either VB 2015 or C# 6.0, but which? Thank you for the replies below which all say "Go with C#". That I will do. I have found another reason to go with it - ASP.NET Core 1.0 doesn't support VB.
I moved from VB to C# and it wasn't a difficult transition (I did start out in life as a C programmer but I'm not sure that that was a huge factor). C# is, undoubtedly, a vastly superior language to the syntactically hideous VB and it has the added advantage of being used by far more people so it's much easier to get help when you need it. If you decide to go with C# you'll wind up being glad that you did.
Slogans aren't solutions.
-
I am about to embark on some web development and the question is - VB 2015 or C# 6? I am a Visual Basic man right back from Sinclair's first ZX Spectrum. Since then, any programming I've had to do was usually in VB. I even contracted for a large company and wrote a number of large programs in VB. Since I've been dabbling in websites, I've used C# for the odd bit of coding I've needed but am not familiar with the latest assemblies; C# 3.0, possibly 4.0, was the last I used. I now want to try and re-write a site for my Bowling Club with the look and feel of Win10 using Bootstrap/Bootmetro. There is an SQL Server database holding the last 4 years worth of information currently set up which is currently displayed by a poor front-end website. I want to recode the website using VS 2015 ASP.NET Core 1.0 and either VB 2015 or C# 6.0, but which? Thank you for the replies below which all say "Go with C#". That I will do. I have found another reason to go with it - ASP.NET Core 1.0 doesn't support VB.
VB.NET vs C#? You know you're starting a war right? :laugh: Most replies here are likely to ignore the fact that you are well versed and productive in VB and tell you that you should use C# because VB is evil. :laugh: Where's that confounded sarcasm tag? :laugh: I say, use VB if that's what you know. In the end it all compiles to MSIL and the users really don't care which one you choose. :)
"Go forth into the source" - Neal Morse
-
If you're looking to use ASP.Net Core, it's worth remembering that .NET Core doesn't yet support Visual Basic. If you'll be running on Windows using the full CLR and .NET Framework, you could still write most of your app logic in VB if you want to - your ASP.NET web app would be in C#, but you could have a separate VB project that you reference from your web app. Of course, even that isn't so simple right now. In VS2015, if you add a regular .NET class library project to a solution that already contains an ASP.NET core application, you can't just add a reference to the class library project from the ASP.NET Core project. You'll have to build the class library first and reference the .dll. That restriction will probably be gone in VS2017. .NET Core projects will be switching back to using .csproj instead of project.json. The VS2015 .NET Core tooling doesn't currently support that, but VS2017 RC does.
-
John Simmons / outlaw programmer wrote:
Go C#. VB is for liberal snowflakes conservative flatulaters that are afraid to commit to a strongly type paradigm.
FIFY
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
Hey, nothing wrong with conserving one's flatulence. You never know when it will come in handy. :)
-
Thanks for that. I discovered it wasn't supported in Core 1.0, so have already decided to go with C#.
Ryan Peden wrote:
That restriction will probably be gone in VS2017.
I can't wait for 2017 - I may not be here then. I'm 74 next week!!!
Sounds like a good plan! For what it's worth, VS2017 RC available now, and according to these release notes, the updated .NET Core tooling will let .NET Core projects reference other projects in the same solution. So if you get into the project and find yourself wishing for VB, at least it's still an option. :)
-
I am about to embark on some web development and the question is - VB 2015 or C# 6? I am a Visual Basic man right back from Sinclair's first ZX Spectrum. Since then, any programming I've had to do was usually in VB. I even contracted for a large company and wrote a number of large programs in VB. Since I've been dabbling in websites, I've used C# for the odd bit of coding I've needed but am not familiar with the latest assemblies; C# 3.0, possibly 4.0, was the last I used. I now want to try and re-write a site for my Bowling Club with the look and feel of Win10 using Bootstrap/Bootmetro. There is an SQL Server database holding the last 4 years worth of information currently set up which is currently displayed by a poor front-end website. I want to recode the website using VS 2015 ASP.NET Core 1.0 and either VB 2015 or C# 6.0, but which? Thank you for the replies below which all say "Go with C#". That I will do. I have found another reason to go with it - ASP.NET Core 1.0 doesn't support VB.
C# 6 without question
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
I am about to embark on some web development and the question is - VB 2015 or C# 6? I am a Visual Basic man right back from Sinclair's first ZX Spectrum. Since then, any programming I've had to do was usually in VB. I even contracted for a large company and wrote a number of large programs in VB. Since I've been dabbling in websites, I've used C# for the odd bit of coding I've needed but am not familiar with the latest assemblies; C# 3.0, possibly 4.0, was the last I used. I now want to try and re-write a site for my Bowling Club with the look and feel of Win10 using Bootstrap/Bootmetro. There is an SQL Server database holding the last 4 years worth of information currently set up which is currently displayed by a poor front-end website. I want to recode the website using VS 2015 ASP.NET Core 1.0 and either VB 2015 or C# 6.0, but which? Thank you for the replies below which all say "Go with C#". That I will do. I have found another reason to go with it - ASP.NET Core 1.0 doesn't support VB.
They had VB for the Speccy? Us experts used Sinclair Basic.
I wanna be a eunuchs developer! Pass me a bread knife!
-
They had VB for the Speccy? Us experts used Sinclair Basic.
I wanna be a eunuchs developer! Pass me a bread knife!
-
I am about to embark on some web development and the question is - VB 2015 or C# 6? I am a Visual Basic man right back from Sinclair's first ZX Spectrum. Since then, any programming I've had to do was usually in VB. I even contracted for a large company and wrote a number of large programs in VB. Since I've been dabbling in websites, I've used C# for the odd bit of coding I've needed but am not familiar with the latest assemblies; C# 3.0, possibly 4.0, was the last I used. I now want to try and re-write a site for my Bowling Club with the look and feel of Win10 using Bootstrap/Bootmetro. There is an SQL Server database holding the last 4 years worth of information currently set up which is currently displayed by a poor front-end website. I want to recode the website using VS 2015 ASP.NET Core 1.0 and either VB 2015 or C# 6.0, but which? Thank you for the replies below which all say "Go with C#". That I will do. I have found another reason to go with it - ASP.NET Core 1.0 doesn't support VB.
I saw no mention of this. You said the last C# you used was possibly 4.0? If it was then you don't have much to catch up on. C#5 and 6 are relatively small in changes compared to 3.0 and 4.0. C#5 introducing
async
and caller information for debugging while C#6 is mostly just quality-of-life improvements to syntax. -
I am about to embark on some web development and the question is - VB 2015 or C# 6? I am a Visual Basic man right back from Sinclair's first ZX Spectrum. Since then, any programming I've had to do was usually in VB. I even contracted for a large company and wrote a number of large programs in VB. Since I've been dabbling in websites, I've used C# for the odd bit of coding I've needed but am not familiar with the latest assemblies; C# 3.0, possibly 4.0, was the last I used. I now want to try and re-write a site for my Bowling Club with the look and feel of Win10 using Bootstrap/Bootmetro. There is an SQL Server database holding the last 4 years worth of information currently set up which is currently displayed by a poor front-end website. I want to recode the website using VS 2015 ASP.NET Core 1.0 and either VB 2015 or C# 6.0, but which? Thank you for the replies below which all say "Go with C#". That I will do. I have found another reason to go with it - ASP.NET Core 1.0 doesn't support VB.
Forget the c# vs VB discussions on syntax and typing. there is only 1 valid criteria you should apply, which has the most and best support resources. Others have mentioned it, most examples on the interweb are in c#.
Never underestimate the power of human stupidity RAH
-
Go C#. VB is for liberal snowflakes that are afraid to commit to a strongly typed paradigm.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013John Simmons / outlaw programmer wrote:
VB is for liberal snowflakes that are afraid to commit to a strongly typed paradigm.
I think I'm going to co-opt that and replace VB with my favorite loathsome script language du jour. :) Marc
V.A.P.O.R.ware - Visual Assisted Programming / Organizational Representation Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
I am about to embark on some web development and the question is - VB 2015 or C# 6? I am a Visual Basic man right back from Sinclair's first ZX Spectrum. Since then, any programming I've had to do was usually in VB. I even contracted for a large company and wrote a number of large programs in VB. Since I've been dabbling in websites, I've used C# for the odd bit of coding I've needed but am not familiar with the latest assemblies; C# 3.0, possibly 4.0, was the last I used. I now want to try and re-write a site for my Bowling Club with the look and feel of Win10 using Bootstrap/Bootmetro. There is an SQL Server database holding the last 4 years worth of information currently set up which is currently displayed by a poor front-end website. I want to recode the website using VS 2015 ASP.NET Core 1.0 and either VB 2015 or C# 6.0, but which? Thank you for the replies below which all say "Go with C#". That I will do. I have found another reason to go with it - ASP.NET Core 1.0 doesn't support VB.
PHP, HTML, Java script, linux, these give you freedom. I been doing VB.6, VB.Net for 20 + years and use it regular. But when looking for a job they throw it in the ad as a way to get you to look. Reading the job ad deeper you realize they want C#, java script, hmtl, web api skills etc. I have switched to Php and laravel and vue.js and am very happy.
-
I am about to embark on some web development and the question is - VB 2015 or C# 6? I am a Visual Basic man right back from Sinclair's first ZX Spectrum. Since then, any programming I've had to do was usually in VB. I even contracted for a large company and wrote a number of large programs in VB. Since I've been dabbling in websites, I've used C# for the odd bit of coding I've needed but am not familiar with the latest assemblies; C# 3.0, possibly 4.0, was the last I used. I now want to try and re-write a site for my Bowling Club with the look and feel of Win10 using Bootstrap/Bootmetro. There is an SQL Server database holding the last 4 years worth of information currently set up which is currently displayed by a poor front-end website. I want to recode the website using VS 2015 ASP.NET Core 1.0 and either VB 2015 or C# 6.0, but which? Thank you for the replies below which all say "Go with C#". That I will do. I have found another reason to go with it - ASP.NET Core 1.0 doesn't support VB.
It wont be as bad as you think. Yes, there is definitely a lot of C# quirks that you would never see in Visual Basic. Fortunately over the years, a lot of them have been removed. String Literals will be different, and type casting also can be a pain. What you will gain out weighs the losses by a tremendous amount. (And you are also fitting yourself for a very close to Java experience too). Where there's smoke, there's a Blue Screen of death.
-
John Simmons / outlaw programmer wrote:
VB is for liberal snowflakes that are afraid to commit to a strongly typed paradigm.
I think I'm going to co-opt that and replace VB with my favorite loathsome script language du jour. :) Marc
V.A.P.O.R.ware - Visual Assisted Programming / Organizational Representation Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
Permission granted, sir.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
Hey, nothing wrong with conserving one's flatulence. You never know when it will come in handy. :)
Slacker007 wrote:
You never know when it will come in handy.
Yes, you do. Because it's always handy.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
It wont be as bad as you think. Yes, there is definitely a lot of C# quirks that you would never see in Visual Basic. Fortunately over the years, a lot of them have been removed. String Literals will be different, and type casting also can be a pain. What you will gain out weighs the losses by a tremendous amount. (And you are also fitting yourself for a very close to Java experience too). Where there's smoke, there's a Blue Screen of death.
I resisted making the move to C# for a long time because I was so deeply vested in VB and finally the first part of this year I drove a stake in the sand and said that was it. I simply was not able to find the support for what I wanted to accomplish with my sites under VB and was clearly seeing abundant references for it under C#. It had become abundantly clear that community support for VB was waning. I'm far from expert at this juncture but I've grown comfortable very fast with C# and haven't looked back for a second wishing I'd done differently. So, if you're considering this for self improvement and development I would weigh heavy on the C# side of things. The only thing that might sway me to suggest VB in your case would be if you wanted to achieve something quick and dirty with something you know cold. Then there is an obvious consideration. However, with that benefit, comes walls that you must consider and for me those walls were insurmountable. You must consider those walls as well. Good luck!
-
I am about to embark on some web development and the question is - VB 2015 or C# 6? I am a Visual Basic man right back from Sinclair's first ZX Spectrum. Since then, any programming I've had to do was usually in VB. I even contracted for a large company and wrote a number of large programs in VB. Since I've been dabbling in websites, I've used C# for the odd bit of coding I've needed but am not familiar with the latest assemblies; C# 3.0, possibly 4.0, was the last I used. I now want to try and re-write a site for my Bowling Club with the look and feel of Win10 using Bootstrap/Bootmetro. There is an SQL Server database holding the last 4 years worth of information currently set up which is currently displayed by a poor front-end website. I want to recode the website using VS 2015 ASP.NET Core 1.0 and either VB 2015 or C# 6.0, but which? Thank you for the replies below which all say "Go with C#". That I will do. I have found another reason to go with it - ASP.NET Core 1.0 doesn't support VB.
C#, it will reduce the amount of abuse you have to wade through from "fellow programmers" that hate VB.Net regardless of whether they know anything about it.