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."
Thread beginning with comment 537287
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[4]: Two?
by lucas_maximus on Tue 2nd Oct 2012 07:22 UTC in reply to "RE[3]: Two?"
lucas_maximus
Member since:
2009-08-18

The thing is that is ultimately unrealistic.

I been doing Web Development properly now for 3 years and while I am quite comfortable writing jQuery plugins and large scripts.

The prototype based OOP, along with the function scoped variables is a PITA to get your head back into after coming from something sensible like C#.

Also when reading pure JavaScript, from someone who does just JavaScript for a living ... It pretty hard to read.

If these transcompilers can be mapped to the JavaScript code easily, then I am all for them because it makes my life simpler as a C# developer that occasionally does JavaScript.

Reply Parent Score: 2

RE[5]: Two?
by moondevil on Tue 2nd Oct 2012 08:20 in reply to "RE[4]: Two?"
moondevil Member since:
2005-07-08

Sorry to say, but that sounds like an hammer for every nail, screw...

I never bought into "one language fits all" thing.

edit: typo

Edited 2012-10-02 08:20 UTC

Reply Parent Score: 2

RE[6]: Two?
by lucas_maximus on Tue 2nd Oct 2012 08:53 in reply to "RE[5]: Two?"
lucas_maximus Member since:
2009-08-18

Neither have I.

However for what JavaScript does and the fact that it is significantly different to how every server side popular server side language works when it comes to OOP. There are also lots of caveats when dealing with types, which if you aren't aware of will trip you up.

I see a lot of JavaScript atrocities because:

1) Not a proper language
2) Not understood properly by most developers, especially when they come from a Java, C# or similar background, because it looks similar to them.

I like writing code in JavaScript, but I think the syntax of the language is misleading to how it actually works, and there is a lot you got to learn that isn't obvious about the language (hoisting for example). I am not surprised people are looking for alternatives.

If you ask me last year I would have had a totally different opinion.

Edited 2012-10-02 08:59 UTC

Reply Parent Score: 3