What language to code in?

Hello,

I am new to game design and i would like to know what Programming language i should use, i have experience in Visual basic which i know is not a very hard language to learn. Is unity limited to JavaScript, c# and boo? which one would you recommend is the easiest out of the options?

Thanks,

Nick

Javascript is easiest. C# is stricter but that might make you a better programmer (and it will save you some JS/C# compatibility headaches). I don’t know, nor do I know anyone that uses, boo, so I can’t say boo about it. Except ‘why?’

I use C#. Just because it can do more. But it’s not a bad idea to start with js.

i personally use javascript, because i also use it in web programming, so in html webpages, and even though it has different functions, the syntax is basically the same.

but it’s up to you, take a look, watch some tutorials, and decide which one you prefer, but personally i use javascript.

and yeah, i think that unity is limited to javascript, C# and boo :slight_smile:

hope this helps

-Grady

Thanks guys, i will start with JavaScript but i was wondering if i should do tutorials that arn’t unity specific or is it the non unity JavaScript a bit different.

From what I’ve seen, the major benefits in the three languages are:

  • Javascript: Easy, c-style scripting
    in what’s obviously a scripting
    language

  • C#: Strict typing makes debugging
    much easier at compile time, also
    more explicit OO stuff going on

  • Boo: Very clean syntax with easy
    enumeration and looping constructs,
    and has nicer functional programming constructs than C#

Javascript is going to be the closest to visual basic in terms of syntax and coding style. C# would be nice to learn because of the typing as well as getting you familiar with what C++ kind of looks like (which is what a lot of tutorials on the net are in). And finally Boo is great if you can’t stand opening and closing brackets any longer, and are at least passingly familiar with python.

Do you guys know of any unity specific JavaScript tutorials?

I use Unity’s javascript because it’s way more concise than C#. I started programming in C in the 80’s, when it was just C, without ++ or #. The greatest charm of C by that time was just it’s conciseness - we had to type tons of words in Pascal or Basic to do the same we did with little typing in C.

Now C# became too complex and verbose to my taste, so I switched happily to Unityscript - but always defining explicitly each variable type! (or implicitly, via type inference). Untyped variables are the worst human invention ever! It’s against commom sense to store bricks, water or oxigen in the same container, so why storing floats, ints or strings in the same variable should make more sense? Nothing good could result from this!

JavaScript is very useful for most programmers and when it comes to coding,it is much easier to code.

The industry of programming languages is massive. Languages that are well-versed frequently take over the surroundings (C, Java, PHP), with rival going into the business occasionally (Scala, D).

Swift is designed to have a simpler syntax, in line with other modern programming languages.

Similar to Swift, Hack is one other programming language which lately been introduced and is a product of some other technology monster, Facebook.

it takes time to exercise and learn New Programming Languages, and you need to be positive that the language you’re thinking about switching to will be supported long term. No one desires to build software in a language that will likely be useless in few years’ time.