michaelaisgreat
A scripting language vs. a programming language is not black and white, likewise, scripting vs. programming is not black and white. Instead, they are both full of shades of grey.
Irrelevant.
michaelaisgreat
The task of "scripting" in a game is significantly more advanced than what Javascript was ever intended for in the first place. The fact that the same English term is used is irrelevant.
What makes you think that's the case? Scripting engines are event-driven data systems that make heavy use of small, testable functions in easily-separated units. JavaScript is
perfectly suited to this task. (Although I don't intend to support JavaScript in my own game engine project because of the size of the two popular VMs, v8 and SpiderMonkey.)
michaelaisgreat
Regardless, while it is the case that people have written quite complex things in Javascript, the fact remains that Javascript is simply the only choice available for scripts running on websites - this is likely one of the only reasons Javascript is ever used in these cases.
Irrelevant. Also, factually incorrect:
A number of developers use CoffeeScript, Google's GWT, Microsoft's ASP.NET MVC tools, and
several other tools that produce JavaScript. Google is also making a push to add Dart to the languages supported on the web.
michaelaisgreat
While I don't doubt that Javascript would be adequate for simple Unity3D games, starting with Javascript can hinder further development should the developer wish to expand. The differences in complexity of a simple C#/Boo script and an equivalent Javascript script are trivial, so there isn't really any downside to not using Javascript, yet in the case of further more complex development there can be.
Irrelevant. All of the use cases for JavaScript, save for Node.js, are by definition simple. They always involve relatively simple event-driven scripts that operate independently of a larger whole.
If we were talking about Node.js, I might agree with you. But we are not.
michaelaisgreat
How is it rational to choose Javascript for this task?
Because it is available, and the knowledge gained is valuable in wide domains.
Indeed, it's valuable
even if you don't use it again. Learning a language gives your mind the tools to think more creatively about new problems. It's why I tell people to learn a new language whenever they have the opportunity and the time,
because it makes you a better programmer.
Sitwon
I have never seen any evidence to support the hypothesis that learning an inferior language first will permanently retard someones understanding of core concepts. There is anecdotal evidence on both sides, but little in the way of hard numbers.
I have. Learning BASIC impeded my learning process for several years.