Two Ways to JavaScript

Erik Meijer said:

JavaScript is an assembly language. The JavaScript + HTML generate is like a .NET assembly. The browser can execute it, but no human should really care what’s there.

Scott Hanselman continues:

The point is, of course, that no analogy is perfect. Of course JavaScript as a language doesn’t look or act like ASM. But as an analogy, it holds up.

  • JavaScript is ubiquitous.
  • It’s fast and getting faster.
  • Javascript is as low-level as a web programming language goes.
  • You can craft it manually or you can target it by compiling from another language.

So there you go. There are just two ways to JavaScript:

  1. Manual or handwritten (direct)
  2. Automated by compiling from another language (indirect) – see list of languages that compile to JS (courtesy of the CoffeeScript developer himself)
Advertisements