Programming Language

Hello!

Ok, I think i will start with Javascript. I haven't found much tutorials for it, so if someone can post a few, i will be happy :) And also, where should i try out the codes? In Unity, or in some other program?

Old: I'm starting to learn Unity, but i don't know witch programing language should i choose. I have very minimal background in programing (Pascal).

There's also a similar Question, How should I decide between C#/JS/Boo?

My advice as a recent beginner in programming myself, would be to start with JavaScript. And move on to C# when you start to get the hang of it.

I remember seeing a very good, long post on this here. My 2 cents is that C# is better for larger efforts where there are more people contributing. The Javascript that runs on Mono is not my favorite creature... you will be surprised (and not pleasantly) if you have a web programming background using Javascript and try to use it in Mono. It's more quick and dirty to me. Again, just my 2 cents.

there is a long discusion in forums. it's link is in another answer here. pascal is a typed language and C# is too. so you can use it if you know pascal but if minimal means you don't remember anything then js is easier. hey later or sooner for bigger projects C# is a better option. it's my idea but many of the great games made in unity use javascript as their language of choice. js is easier but C# is more powerful. when i talk about power i mean more structures to use and things like interfaces but begginers don't use these features much even if they learn them so start with js and once you found yourself a programmer in an intermmediate level go and learn C#. there are good books for C# but for ECMA script or java script there are not many books. be careful web's javascript has differences with unity's. the syntax is the same but there are commands (classes and methods) in web's js that they are not available in unity and vice versa. you can email me for more discussion.

I prefer Unity's Javascript for most general things; it's written more specifically for Unity and makes some things more streamlined, whereas C# is just C#, which IMO gets to be a drag when dealing with long Unity programming sessions. However Unityscript is lacking some features, which makes it not feasible to use for everything in more advanced projects. Mixing the two is fine as long as you keep compilation order in mind. Also the Unity Javascript author seems to have been hired on by UT a while ago, according to a blog post, which suggests there will be improvements in future versions. As far as "web" Javascript goes, you're better off ignoring that, since in Unity it's a lot more like JScript (see MSDN docs on that).

Ok, I think i will start with Javascript. I haven't found much tutorials for it, so if someone can post a few, i will be happy :) And also, where should i try out the codes? In Unity, or in some other program?