difference between VB and C#?

I’m trying to learn C# (for later Unity’s programming stuff) using Visual Basic 2010 and a book called Introduction to Game AI (2008 vers)… So I came across this file type in the book called “.VB” which was used throughout the entire book, and nothing about C# in there… I tried to look into VB2010 for a “.VB” file but I couldn’t find any. Is there a difference between VB and C#?

Well anyway, one thing I’m most certain of is the lines are obviously shorter in C#… Just tell me how I could switch between them…

VB is VisualBasic. C# is… C# :slight_smile: It’s two separate programming languages. If you know both you can translate from one to another without problems… otherwise I don’t know :slight_smile: you’ll have to buy books on C# and VB, or new book about AI with examples in C# :slight_smile:

VB vs C# is like French vs Japanese. They are different languages. If you know both, you should be able to translate ideas from one language into the other, although the translations won’t always be perfect.

Personally, if I were trying to learn AI programming in C#, I would prefer a book that used C#, pseudocode, or a sister language (C/C++ or Java). I wouldn’t want to be distracted by a different language’s syntax, even though translating it wouldn’t be hard fo rme, and VB programming is via Visual Studio and uses .NET.

perhaps changing books is the only solution huh?

I usually use Java for most of my projects, and had been reading some books on AI for a while, but I couldn’t find any of them that suits me… it’s either too hard for me to understand, or I don’t understand the code it’s using…

You guys have any good recommendation on books? Or should I just start learning C# to save more troubles?