I saw the original announcement of Typescript at JSconf EU last year. It was an interesting moment: everyone was expecting another Dart, or less (there's a sea of Macs and most professional JS devs experience of Microsoft is IE) but stayed to listen to the presentation out of respect for the creator, who also made Delphi and C#.
Pretty much everyone came out impressed. Typescript is just JS with type hints, and neat warnings if you send a function something which its signature doesn't expect.
You can make a JS project a Typescript one immediately, adding type hints as you go, which for large projects is damn useful. The output, however, is pure regular old JS.
It's just like a CSS preprocessor, but for JS - transparently adding some optional awesomeness.
It works on Linux/Mac and SublimeText (albeit you don't get all the VS Intellisense stuff IIRC) too. I'm looking forward to trying it on a new project.
Typescript is in my peripheral vision so far but that really makes me want to look into it properly.
How do you think does it fit in with ES6? I feel like we're coming to a point in time where there should be a major shift in how we write javascript in a modern way -- so far my thought process has been that Coffescript is a nice stopgap before ES6 and the dust has almost settled enough to write ES6 first sorta..
TypeScript is a language for application-scale JavaScript development.
TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
Any browser. Any host. Any OS. Open Source.
I am very excited by Typescript. I think JS was badly in need of some better typing. This release looks like it adds a lot: overloading on constants, enums, and generics will all lead to better typing. Never thought I'd say it, but thanks, Microsoft!
The TypeScript tooling is completely open source (and actually written in TypeScript itself). So yeah I think we should see more support for TypeScript as it gains more traction.
I've been burned way too many times with Microsoft and there technology. I suggest that no one build any long lasting apps with this. They will dump it when something new and shiny comes along. Unless its based on C# or uses Visual Studio don't use it.
I now work at Microsoft, but was previously a long time developer in the Microsoft ecosystem (primarily C++). I would be the last guy to disagree with your experience and I am telling everyone who will listen internally what it was like to be on the outside.
But the Typescript project has some things going for it:
1. It's open source.
2. It's closely aligned with EC6, the upcoming Javascript standard.
3. It's compatible with existing Javascript libraries.
4. It's useful as it is, to add type checking to Javascript. It doesn't require a massive growing ecosystem to remain viable.
5. The compiler outputs standard idiomatic Javascript, which you could take and run with if you no longer wanted Typescript.
And, yes, there's a Visual Studio plugin for it if that's your cup of tea.
Ouch. Can you give me some examples? A lot of companies have this issue: Google and Apple both dump tech left and right. If it's open source software and it's popular, though, there's a good chance the community will make sure it sticks around.
Microsoft didn't kill Silverlight, the iPad killed Silverlight. As for VB6, I think many here would agree that it was better off killed. You can still run VB6 apps on even Windows 8 though.
For people looking for an editor in which to try out TypeScript, I'll note that there's a neat looking community-written TypeScript extension[1] for Brackets[2]. (I work on Brackets).
I've been using dynamically typed languages consistently since 2005, but I'm curious to give TypeScript a try to see how it feels. The last statically typed language I used was Java (2004), and that was not a wholly pleasant experience.
If the selling point for TypeScript is adding static types/analysis to JavaScript, do we expect that it is the trend that other popular dynamic languages e.g. python/ruby/php will likely follow?
I think TypeScript is a cool idea, but I actually want runtime type checking. I don't know how many developers code with "design by contract" where you have contracts enforced not just at compile time, but at runtime. It allows for some incredibly smart, pluggable systems. I really don't know why there isn't more done with runtime type checking in various dynamic languages.
is it just me or Microsoft is slowly converting Javascript into C#? Don't get me wrong I like typescript but next thing you know we have .NETJS floating around :)
nailer|12 years ago
Pretty much everyone came out impressed. Typescript is just JS with type hints, and neat warnings if you send a function something which its signature doesn't expect.
You can make a JS project a Typescript one immediately, adding type hints as you go, which for large projects is damn useful. The output, however, is pure regular old JS.
It's just like a CSS preprocessor, but for JS - transparently adding some optional awesomeness.
It works on Linux/Mac and SublimeText (albeit you don't get all the VS Intellisense stuff IIRC) too. I'm looking forward to trying it on a new project.
recuter|12 years ago
How do you think does it fit in with ES6? I feel like we're coming to a point in time where there should be a major shift in how we write javascript in a modern way -- so far my thought process has been that Coffescript is a nice stopgap before ES6 and the dust has almost settled enough to write ES6 first sorta..
Bit of a ramble. Interesting times.
stusmall|12 years ago
dham|12 years ago
https://github.com/tomsdev/brackets-typescript-code-intel
Still early
ixtraz|12 years ago
mseepgood|12 years ago
A programming language works with a text editor? Wow!
marshray|12 years ago
So there's this related open source project seeking to optimize the performance of Node.js apps running on IIS and hosting them on Azure. https://github.com/tjanczuk/iisnode/wiki We've seen some interesting performance gains by supplanting Node.js's HTTP implementation with the in-kernel HTTP stack, http.sys. http://tomasz.janczuk.org/2012/08/the-httpsys-stack-for-node...
Disclosure: I work for Microsoft. I personally found this interesting.
ixtraz|12 years ago
(C) http://www.typescriptlang.org/
Btw, I've used it a lot, feel free to ask any questions.
turingbook|12 years ago
egonschiele|12 years ago
ktavera|12 years ago
tieTYT|12 years ago
Is there any legal reason why someone couldn't create a plugin for those Java ides to compile TypeScript?
SystemOut|12 years ago
http://www.jetbrains.com/idea/webhelp/typescript-support.htm...
pjmlp|12 years ago
http://www.jetbrains.com/idea/whatsnew/
http://www.jetbrains.com/idea/webhelp/typescript-support.htm...
giulianob|12 years ago
ixtraz|12 years ago
This is the same as IDEA, but focused on Web Development and releasing new features much-much faster.
But best support offers MIcrosoft's Visual Studio. You could try Visual Studio Web Express (http://www.microsoft.com/visualstudio/eng/products/visual-st...) if you are using Windows. It's totally free.
inklesspen|12 years ago
M4N14C|12 years ago
[deleted]
michaelwww|12 years ago
tomaszkubacki|12 years ago
[deleted]
DonnyV|12 years ago
marshray|12 years ago
But the Typescript project has some things going for it:
1. It's open source.
2. It's closely aligned with EC6, the upcoming Javascript standard.
3. It's compatible with existing Javascript libraries.
4. It's useful as it is, to add type checking to Javascript. It doesn't require a massive growing ecosystem to remain viable.
5. The compiler outputs standard idiomatic Javascript, which you could take and run with if you no longer wanted Typescript.
And, yes, there's a Visual Studio plugin for it if that's your cup of tea.
pjmlp|12 years ago
egonschiele|12 years ago
michaelwww|12 years ago
sivam|12 years ago
euroclydon|12 years ago
ww520|12 years ago
ixtraz|12 years ago
http://typescript.codeplex.com/discussions/438243
marshray|12 years ago
http://channel9.msdn.com/Blogs/Charles/Anders-Hejlsberg-Stev...
michaelwww|12 years ago
dangoor|12 years ago
I've been using dynamically typed languages consistently since 2005, but I'm curious to give TypeScript a try to see how it feels. The last statically typed language I used was Java (2004), and that was not a wholly pleasant experience.
[1]: https://github.com/tomsdev/brackets-typescript-code-intel [2]: http://brackets.io/
michaelwww|12 years ago
ycner|12 years ago
ixtraz|12 years ago
If you don't want to recompile it every time, you could just use better-require module: https://github.com/olalonde/better-require
ixtraz|12 years ago
programminggeek|12 years ago
M4N14C|12 years ago
[deleted]
bjhoops1|12 years ago
zedzed|12 years ago
ixtraz|12 years ago
serkanyersen|12 years ago
miohtama|12 years ago
- Follow EcmaScript6 development path
- Using NodeJS as the base for the language service
- Providing plugins for various editors
- Be superset of JavaScript - you can (almost) directly drop any JS code to TypeScript
After all these years it almost looks like Microsoft has learnt its lessons and sees there is more than Windows Server out there.
RickyShaww|12 years ago
sunnyujjawal|12 years ago