Live data from Hacker News

Announcing TypeScript 0.9.1

blogs.msdn.com

31–40 of 116 posts

Re: Announcing TypeScript 0.9.1

#31
post #5

Earlier quoted context omitted.

My project isn't huge, but larger than it could have been using idiomatic javascript. The scoping with modules and the typing really helped since I'm familiar with C# and having "everything light up" in the IDE. Saved a ton of time letting a compiler catch things instead of writing tests. I tried coffee script, but found the copy/paste option for javascript that I have already written won me over.

There's js2coffee.org to copy paste JavaScript to CoffeeScript.

... just for it to be 'compiled' back to JavaScript...

Re: Announcing TypeScript 0.9.1

#32
post #9
post #6

Earlier quoted context omitted.

Why are you concerned about this? I didn't see anything in the announcement that would suggest it.

Cause it makes it windows only. EDIT: to add, I like the idea of typescript (it's a much smaller step than compared to something like Dart). But their tooling is all around Visual Studio, which ties you to Windows. I don't dislike Windows, but I want my development tools to be cross platform (which is why I like Sublime Text, Eclipse, and similar tools).

What makes you think it is windows only?

npm install -g typescript

Re: Announcing TypeScript 0.9.1

#34
post #5

I haven't heard much about TypeScript since its original announce. Are any big projects using it? Does anybody have some commentary on their experience using it and where they think the project is going?

My project isn't huge, but larger than it could have been using idiomatic javascript. The scoping with modules and the typing really helped since I'm familiar with C# and having "everything light up" in the IDE. Saved a ton of time letting a compiler catch things instead of writing tests. I tried coffee script, but found the copy/paste option for javascript that I have already written won me over.

Interesting. Is there a higher level lang that ONLY adds type safety and compile-time checking to JS?

Re: Announcing TypeScript 0.9.1

#36
post #9
post #6

Earlier quoted context omitted.

Why are you concerned about this? I didn't see anything in the announcement that would suggest it.

Cause it makes it windows only. EDIT: to add, I like the idea of typescript (it's a much smaller step than compared to something like Dart). But their tooling is all around Visual Studio, which ties you to Windows. I don't dislike Windows, but I want my development tools to be cross platform (which is why I like Sublime Text, Eclipse, and similar tools).

> but I want my development tools to be cross platform (which is why I like Sublime Text, Eclipse, and similar tools).

Still not sure why you're complaining. There's great support for TypeScript for Sublime, Vim, Emacs, Intellij IDEA and Eclipse.

http://msopentech.com/blog/2012/10/01/sublime-text-vi-emacs-...

http://blog.jetbrains.com/webide/2013/02/typescript-support-...

http://marketplace.eclipse.org/content/typescript

Re: Announcing TypeScript 0.9.1

#37
post #5

Earlier quoted context omitted.

My project isn't huge, but larger than it could have been using idiomatic javascript. The scoping with modules and the typing really helped since I'm familiar with C# and having "everything light up" in the IDE. Saved a ton of time letting a compiler catch things instead of writing tests. I tried coffee script, but found the copy/paste option for javascript that I have already written won me over.

Interesting. Is there a higher level lang that ONLY adds type safety and compile-time checking to JS?

Sounds like typescript v0.1 :) Seriously though, since all typescript features are optional, why do you want a language that doesn't have them at all?

Re: Announcing TypeScript 0.9.1

#38

I haven't heard much about TypeScript since its original announce. Are any big projects using it? Does anybody have some commentary on their experience using it and where they think the project is going?

I was writing a biggish weekend project. It was mostly client-side logic with a FireBase backend.

I developed the first prototype in pure JS and there were some bugs (due to me being new to this FireBase model, and some hastily developed code).

I then converted the whole thing to TypeScript, because I prefer static typing. It took some time to setup: upgrading to the latest nodejs, collecting all type definitions for popular libraries, etc. The DefinitelyTyped[1] library is a great resource. But there were some warts in it. I had to make some PRs to this library for some missing methods in jQuery.

But right after finishing the setup, I was able to find and fix a complicated sequencing bug. That alone was worth the trouble of the setup cost.

I then tried using TypeScript for another project (this one had a licensed IDEA available). Here the setup cost was even lower. There are plugins available for Typescript in IDEA. Though I couldn't convince everyone in the team to switch to TypeScript.

This was back before they added generics support. Now that generics is added, I think there is hardly any excuse left to not use TypeScript (or a similar alternative).

What would make TypeScript awesome is support from more IDEs (Eclipse especially).

[1](https://github.com/borisyankov/DefinitelyTyped)

Re: Announcing TypeScript 0.9.1

#39
post #9
post #6

Earlier quoted context omitted.

Why are you concerned about this? I didn't see anything in the announcement that would suggest it.

Cause it makes it windows only. EDIT: to add, I like the idea of typescript (it's a much smaller step than compared to something like Dart). But their tooling is all around Visual Studio, which ties you to Windows. I don't dislike Windows, but I want my development tools to be cross platform (which is why I like Sublime Text, Eclipse, and similar tools).

I work at Microsoft (unrelated to TypeScript) and I think it's an entirely reasonable question to raise any time a generally useful technology escapes from the lab of a company that is also a platform provider.

To answer your question: Yes! TypeScript is quite portable indeed. I have run it with Visual Studio, I have run it with Node.js, and even a JScript interpreter.

Re: Announcing TypeScript 0.9.1

#40
post #5

I haven't heard much about TypeScript since its original announce. Are any big projects using it? Does anybody have some commentary on their experience using it and where they think the project is going?

My project isn't huge, but larger than it could have been using idiomatic javascript. The scoping with modules and the typing really helped since I'm familiar with C# and having "everything light up" in the IDE. Saved a ton of time letting a compiler catch things instead of writing tests. I tried coffee script, but found the copy/paste option for javascript that I have already written won me over.

Transparent integration with native Javascript is a huge advantage for Typescript over things like Dart, I think. The ability to gradually introduce typing into an existing codebase is going to make adoption so much easier.
Post reply on HN