Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This. TypeScript is a tool to sell Visual Studio, nothing more. If people are leaving VS because it can't do the magic things to JavaScript that it can to C# that's a big thread to Microsoft. TypeScript is about protecting the thing that makes them money.


Rubbish. TypeScript is more of a way for Microsoft to develop large scale JavaScript apps productively, hence its rather quick adoption internally. Channel 9 has quite a lot of information about who is using it.

It does help Visual Studio and other tooling, but to say it is only "to sell Visual Studio, nothing more" is ridiculous.


> TypeScript is more of a way for Microsoft to develop large scale JavaScript apps productively,

This implies that you can't develop large scale apps without type checking, which obviously isn't true.

What's more likely is that Microsoft hires a lot of developers that know the "VS way" of coding, which is using intellisense and type checking, and they made a language that conformed to that. Which is the same thing as I originally said.


Nope, and incidentally its not the same thing you originally said at all

productively

You missed the most important word.

As someone who has spent quite some time on Javascript codebases its amazing how quickly things break down when you get developers of different levels working on the same codebase. Optional typing allows a whole batch of problems to be caught way before weird errors/exceptions client-side. Productivity goes way up when the tooling can check basic errors.

(Part of me still wishes Haskell was an option for web scripting but I can dream)


>> (Part of me still wishes Haskell was an option for web scripting but I can dream)

You're not the only one: http://www.di.unipi.it/didadoc/lfc/OtherPapers/Iteroperabili...

(n.b, this is from 1999)


You're wrong, it can be done productively, the evidence is the thousands (tens of thousands?) of such apps that exist on the web, most of which were written in regular JavaScript.


You don't know how productive those developers were on those projects, nor do you know if TS would have made those developers more productive. Granted, the original claim wasn't comparative, but that's the point I'll make anyway.


Interesting theory, let's see how it plays out in the marketplace. If typed languages are indeed more productive we should see them start to win out in, say NPM, right? Today the overwhelming majority of NPM modules are JavaScript, but if the same modules can be written more productively in TypeScript or Dart or another typed alternative, you should start to see those modules win out. Fewer bugs, more able to concentrate on features.


Indeed over the long term modules isn't a bad idea as the interface requirements and discoverability would benefit massively from better tooling, a la optional typing.


Out of how many of the big ones are using scripting tools/language-to-language translation though? Hint: much more than you seem to be aware of/think.

Whether its Google Web Toolkit/Java/C#-to-Javascript generators, Closure templating, Haskell/Clojure/etc. mini-languages, TypeScript, etc. (Job Ad Requirements are one of the great ways to see all this stuff)

When you start working on big applications (e.g. I worked for 5 years on a huge electronic HR application covering everything from timesheets to recruitment to content management to CRM with multi-country, multi-language, multi-regulatory, multi-company, multi-site, multi-thousand users requirements) you realise JavaScript has serious shortcomings...although I still really like the language the tooling and knowledge advances have really, really helped.


Some people see a conspiracy everywhere. Get help!

The more likely conclusion is Microsoft is open-sourcing a tool the found useful internally when building large JavaScript apps.


Who said anything about a conspiracy? Conversation probably went something like:

Suit: People aren't using Visual Studio for JavaScript, why not?

VS PM: We can't do Intellisense properly, so people are using Sublime.

Suit: What can we do about that?

Anders: Let's create our own language that works better with VS.


> TypeScript is a tool to sell Visual Studio, nothing more.

I'll have you know I paid for my WebStorm license because of its TypeScript support =)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: