Linked by Thom Holwerda on Mon 1st Oct 2012 22:55 UTC
General Development "Everyone seems to have a replacement for JavaScript - Google even has two. Now Microsoft has revealed that Anders Hejlsberg has been working on a replacement and it has released a preview of TypeScript. TypeScript is open source - Apache 2.0 license - and a superset of JavaScript. As you would expect from a Hejlsberg language it incorporates type checking, interfaces and lots of syntactic sugar."
Permalink for comment 537243
To read all comments associated with this story, please click here.
RE: Does this fix the DOM too?
by Brendan on Tue 2nd Oct 2012 03:16 UTC in reply to "Does this fix the DOM too?"
Brendan
Member since:
2005-11-16

I've heard somewhere that the problem with making web apps isn't with JavaScript but with the DOM. Does this new super-set of JavaScript do anything about the DOM or is it just more stuff dealing with the language?


The problem with web apps is that (originally) HTML was mostly designed/intended for static documents. For remote applications there were other protocols (e.g. X).

Since then, many different people with many different goals have hacked up work-arounds/extensions to solve problems caused by "not intended for remote applications to begin with" (and problems in other areas, and problems caused by other people's hacks/work-arounds). Because the result is a steaming pile of puke, other people try to create frameworks, etc to hide the underlying puke-fest (but the existence of many different frameworks just adds to the unnecessary complexity/confusion for web app developers, like a thick layer of turd icing on top of a multi-layered puke cake).

The basic idea is that the server tells the client what to display, what user input is allowed and what user input the server wants to know about; and the client displays what it's told to display and gathers the input from the user. It wouldn't be hard to create a clean/elegant way of doing this.

Sadly, the only organisation that would be capable of getting a clean/elegant alternative accepted/supported by the industry is the same organisation that is responsible for a lot of the ungodly mess we have now (W3C).

- Brendan

Reply Parent Score: 8