C# or JavaScript. Which choose for Unity?
-
Hello guys. I downloaded Unity engine recently for sake AI practicing, and faced that the only code it accepts is C# or JavaScript. I read common stuff about both this languages, and still don't know which to select, so it would be(selected language) appliable in the future when i will be looking for the job.
I know only C++ now btw.
-
Pick either one, both are good languages, both are popular (JavaScript is more popular and uglier), both have base syntax quite similar to C++.
-
@Engelard
IMHO, having programmed in both for many years, JavaScript is just horrible/offensive but is very, very useful for future potential jobs, C# is lovely and far preferable for a good experience but may be (a lot) more limited for job prospects. And btw, although both have similar-ish syntax to C++, C# is a still a decently typed language and limits you to doing sensible things like you are used to, while JS lets you do anything you like and blow everything up.... -
@sierdzio said in C# or JavaScript. Which choose for Unity?:
(JavaScript is more popular and uglier)
In what way it is uglier?) There is only two ugly things i see in C# is that it only may be applied on Windows, and second - it was made by Microsoft.
@LeLev said in C# or JavaScript. Which choose for Unity?:
@Engelard https://answers.unity.com/questions/7528/how-should-i-decide-if-i-should-use-c-javascript-u.html
That one is from 2009, but tnx anyway)
I Probably should explore and learn both, assuming that i already know one language, it should'nt be hard.
Thank you all for answers!
-
@Engelard said in C# or JavaScript. Which choose for Unity?:
In what way it is uglier?) There is only two ugly things i see in C# is that it only may be applied on Windows, and second - it was made by Microsoft.
You're asking for opinion, so obviously I'm using my bias here. I very much agree with @JonB - JS is powerful, you can do really magical things with it, but it's very easy to make a mess out of it. No strong typing, horrible "class" syntax (with it's prototypes and whatnot) that is hard to understand. I prefer languages which offer a bit more organized structure (no wonder I'm a C++ guy :D ).
-
@Engelard said in C# or JavaScript. Which choose for Unity?:
In what way it is uglier
-
@Engelard said in C# or JavaScript. Which choose for Unity?:
In what way it is uglier?
-
@sierdzio said in C# or JavaScript. Which choose for Unity?:
I prefer languages which offer a bit more organized structure (no wonder I'm a C++ guy :D ).
Just take a look at the latest and the upcoming C++ standard and you may change your opinion ;)
@VRonin said in C# or JavaScript. Which choose for Unity?:
This one just says it all there is about JS (and future c++) ... :)
-
@kshegunov said in C# or JavaScript. Which choose for Unity?:
Just take a look at the latest and the upcoming C++ standard and you may change your opinion ;)
:| yeah...
-