Code center > Darwinbots3

Converting C# into vb.net

<< < (2/2)

Moonfisher:
Also VB.net looks a lot more like Java and C than it looks like VB6.
Generaly it seems to me like all the .NET languages except Visual C++ look like the same blend of Java and C...
And Visual C++ is just C++, except the compiler comes up with what I like to call fake warnings, telling you to use Visual studio specific functions instead of using the STL libraries (Which is breaking the standard and IMO not something one should recommend, especialy when it means you won't be able to build with a regular C++ compiler.)

Also IMO VB6 is a bit confusing to learn... like for instance I was wasting time figuring out that a While is terminated by Wend, which goes against the syntax they had established that far (EndIf, EndFor, WEnd... ?)

Generaly most higher level programming languages look more or less the same, and knowing one language usualy means it'll be easy to learn a second one and even easyer to learn the third one.
And it should be very easy to pick up C#, if you use the visual studio frontend then it'll highlight errors and give you some relatively clear compiler warnings, you can tab for auto completion (Good way to discover a new syntax realy fast without using a browser).
Other than that there should be some good web pages out there covering the syntax.

There may be some new concepts to pick up along the way, but most of what you know about VB6 is true for the other high level languages. So picking up new languages when you know one of the sort realy shouldn't be a problem (The hard part is learning how to learn programming, and since you already did that you're past the hard part)
And you'll spend just as long learning VB.NET as you would C# I bet...

Botsareus:

--- Quote ---It isn't that hard to learn another programming language
--- End quote ---

 :)  That is exactly why I asked about the accurasy of the convirsion tools. I want to learn c#. The best way I see is to plug c# into one of these tools and see how it looks it in vb.net...

I am catching on I think:


--- Quote ---IF (a == B)
{
a++;
}
--- End quote ---

vb:


--- Quote ---If a = b then a = a + 1
--- End quote ---

Ok, now I will see if I got it right:

C#

--- Quote ---if (a == B) {
    a++;
}
--- End quote ---

aha, I forgot that c# is case sensitive...

Prsn828:
Good job there

Actually, it shouldn't be that hard, just read the different symbols you see in C# as words you associate with in VB6.

Also, Nums and I are always happy to help.  I know that C# is so powerful that it is at first very overwhelming, but once you get past the learning curve it is easy to pick up the rest.  Also, since VB is more basic in syntax, most anything you write in VB translates nicely into C#; it is going the other direction that is difficult.

Numsgil:
Yeah, there are some nasty things you can do in C/C++/C#/Java that don't translate well to VB

Navigation

[0] Message Index

[*] Previous page

Go to full version