|
|
|
|
|
by drgath
5666 days ago
|
|
JavaScript had everything to do with its own success. It was a language written specifically to be run inside the browser. People should rush out to code in any language because of the capabilities of that language. It is silly to focus on minor syntactical differences as the determining factor for a language. I happen to like prototypal languages quite a bit, despite some oddities languages like JS & Io have. Religious wars only pop up when you have a dozen languages/frameworks that can all do the exact same thing, just written with a different syntax, so people come up with superficial reasons to differentiate something. In the grand scheme of web apps, Python == PHP == Ruby. That certainly won't be a popular thing to say, but it is true when you look at the capabilities of each compared to other types of languages and approaches to programming. I choose JS because it is the only language that runs in the browser as well as the server (<--- Killer feature). It is the only one that has that unique capability. If it weren't for JS, you'd be writing Java applets while wanting to shoot your brains out. JS created the position it is in by giving the web a native programming language. |
|
That's what I was getting at - that JavaScript is popular because of the position that it is in (not because of the ECMAScript specification). JavaScript could have been a number of languages, the fact that it happened to be JavaScript, is more a result of a externalities than the language itself.
JavaScript was originally developed on an incredibly short development cycle, so I would be very surprised if we couldn't create a better language for the browser after 15 years of experience.
As far as JS on the server - I don't really see the advantage (other than it's a language that people already know). Having written several Node apps, using a single language didn't strike me as a "killer feature" (especially since their usage is fairly distinct - manipulating the DOM vs manipulating data stores and what have you). Different tools for different problems. I don't see JS as being superior for solving server-side problems.