6 ms·
Because we all hate javascript. I just wish they decoupled javascript engines and browsers, made a language agnostic api spec for the DOM, and just let html <s
by zanny 15y ago
Because we all hate javascript.
I just wish they decoupled javascript engines and browsers, made a language agnostic api spec for the DOM, and just let html <script> tags require a language ref and the browser would be expected to try to find a runtime on the local machine or ask the user to install it. The monopolistic nature of javascript in client web browsing is bad for innovation.
- jlongster 15y agoReally? You're discounting all of the incredible webapps, games, and social networking on the web. If Javascript was bad for innovation, I sure don't see it. You're talking language syntax. Although it matters, it practically doesn't. People build stuff no matter what the language looks like. Look at Obj-C, that thing is horrid (syntax-wise) but look at all the developer adoption. What is bad for innovation is to move back to the 90's where people had to handle local instances of applications, fix versioning problems, and have to install something just because they want one small piece of functionality.
- riffraff 15y ago> If Javascript was bad for innovation, I sure don't see it. This is a fallacy: in absence of a peek at some alternative world where something else was available, you can't tell that javascript improved or worsened the innovation rate.
- wwweston 15y agoIt seems pretty reasonable to observe the desktop world, though, since it has the properties under discussion, and ask ourselves whether it's easier to deploy an application to a wide audience there or on the web.
- slurgfest 15y agoWell, the problem is that this confounds all the properties of "the desktop world" with the properties of another client-side substitute for Javascript (like, say, Dart or some language using NaCl)
- munificent 15y ago> webapps Mostly interesting because of their content and what they do with it on the server. > games You've got to be kidding me. There is nothing technically interesting in any web game I've ever seen. > social networking Again, has nothing to do with interesting client-side technical challenges and everything to do with the content and community. > You're talking language syntax. Don't forget the semantics too.
- MatthewPhillips 15y agoWe don't all hate JavaScript.
- gnaritas 15y ago> Because we all hate javascript. Says who? I love JavaScript, as do a great many other developers. I look at CoffeeScript and all I can think is yuk.
- maratd 15y ago> Because we all hate javascript. You only hate JavaScript when you're starting out. When you get to know the language and how to use it properly, you begin to appreciate it in a very unique way. Until you understand what prototypical programming truly is, you don't understand JavaScript.
- winteriscomming 15y agoI don't think you can dismiss someones dislike for a language as "they don't know how to use it". Common, many people have been building applications on client and server for 15+ years using JS and whatever exists on the backend. And 90% of the time, the backend language is better, and has way better tooling. So you can understand and master JS (including prototypical programming) and still hate it.
- bzbarsky 15y agoThere _is_ a language-agnostic API spec for the DOM; that's the whole point of the DOM specs. It's led to APIs that are a huge pain to use from any language (I've tried it from C++, Java, and JavaScript).