Skip to main content
gamedev.net
🔒 Locked

[.net] C# after Visual Basic

Started by tentaculat 1 reply 950+ views
Original Post
tentaculat
tentaculat
I want to expand my knowledge and move beyond the training-wheels of the BASIC universe - which I've been using for a whole decade - and move onto C#. My original intention was to move to C++, but after dabbling with it I found myself lost. The difference between VB and C++ seems horrifyingly vast to me. So I conceded and once again have decided on a safer route with C#. Worryingly, C# - after hearing it was 'nearly identical' to VB.net (don't ask me where, maybe I dreamed it) - has proven trickier than I thought. I have found and make use of some of the wonderful VB > C# converters, to help me through, but I still find it kind of weird. The difference between a FOR NEXT loop in each language was far more different than I anticipated, and I can't really understand why. Are there any resources for people migrating from VB to C#? I have searched, but I have failed to find anything that explains the differences well enough to someone not well versed in C# or other incarnations of C. Also is it not possible for someone to write a C++ compiler that uses Visual Basic-style syntax, yet compiles in the very same way - so that it can run without huge .net DLLs or the extra bloat associated with high level languages? A bit off topic, but I'm just confused by the huge difference.
TheTroll
TheTroll
Don't migrate, learn C#.

Yes programming principals apply across languages but the way of doing some of those things may change.

So instead of trying to figure out how C# is the same and how it differs, just drop the VB idiom and learn C#. You will make a lot more progress.

Start as if you are a programming newbie. Some things will come very easy because they translate from VB other will be like learning something new.

theTroll
Yazilliclick
Yazilliclick
The Troll is correct. Learn it don't migrate. Really all you should need to cover to get going is the usual first couple chapters of any book on the language that cover the general syntax. As they're both .NET the language libraries are the same so there's really not a lot to learn to switch from one to the other. Might take some practice to get used to the new syntax as they're quite different.
"The general thanks you!" - Quote from a call I took at work.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.