Live data from Hacker News

TypeScript included with Visual Studio 2013 Update 2

blogs.msdn.com

11–20 of 111 posts

Re: TypeScript included with Visual Studio 2013 Update 2

#11
post #3

Earlier quoted context omitted.

I think this is more directed at C# users. The focus of TS is to let tooling (specifically Visual Studio) do the same stuff it does in C#. They tried and failed to make VS good for JS.

I love VS for javascript. With ReSharper installed it is great. I guess maybe I answered my own question by admitting I need a JetBrains tool in there but: What tool is so great for Javascript? I use Sublime a lot as well on my Mac, and I don't like it as well.

> What tool is so great for Javascript?

Chrome/Firefox dev tools.

Re: TypeScript included with Visual Studio 2013 Update 2

#12
post #6

Earlier quoted context omitted.

My only gripe - VS is way too expensive, for my pocket at least. And you need VS to program in TS, Intellisense is that good. Sure, you can go with Express edition but then you don't have node.js extension - which kinda make the whole endeavour bit pointless (again, for me at least). Wish they would bring prices to the level of, for example, those of Jetbrains, or made node.js extension working with Express.

You don't need VS for TS. Eclipse and WebStorm support it pretty well. I've evaluated Visual Studio, Eclipse and WebStorm, and Eclipse and WebStorm are better for TypeScript development, at least if you're using Node.js.

I tried WebStorm and found their support for TS severly lacking, IIRC it was limited to automatic compilation and basic syntax detecting. Code understanding/static type analysis was basically non-existent, e.g. it wasn't checking if argument conforms the interface described in the method's definition - you had to compile the script to find that out.

Re: TypeScript included with Visual Studio 2013 Update 2

#13
post #3

Earlier quoted context omitted.

I think this is more directed at C# users. The focus of TS is to let tooling (specifically Visual Studio) do the same stuff it does in C#. They tried and failed to make VS good for JS.

I love VS for javascript. With ReSharper installed it is great. I guess maybe I answered my own question by admitting I need a JetBrains tool in there but: What tool is so great for Javascript? I use Sublime a lot as well on my Mac, and I don't like it as well.

jshint is an excellent tool for static analysis.

Re: TypeScript included with Visual Studio 2013 Update 2

#14

Microsoft has a potential winning strategy here vs. Dart. They are basically giving JS programmers no more than what they are directly asking for.

My only gripe - VS is way too expensive, for my pocket at least. And you need VS to program in TS, Intellisense is that good. Sure, you can go with Express edition but then you don't have node.js extension - which kinda make the whole endeavour bit pointless (again, for me at least). Wish they would bring prices to the level of, for example, those of Jetbrains, or made node.js extension working with Express.

I write TypeScript in vim and don't wish to run proprietary software, save for a few games on a machine dedicated for that purpose.

It works simply by adding this line on the top or bottom:

  /* vim:set filetype=javascript: */
You can add other options in there as well, so it's easy for others to match your indentation style for instance.

Re: TypeScript included with Visual Studio 2013 Update 2

#15

Microsoft has a potential winning strategy here vs. Dart. They are basically giving JS programmers no more than what they are directly asking for.

My only gripe - VS is way too expensive, for my pocket at least. And you need VS to program in TS, Intellisense is that good. Sure, you can go with Express edition but then you don't have node.js extension - which kinda make the whole endeavour bit pointless (again, for me at least). Wish they would bring prices to the level of, for example, those of Jetbrains, or made node.js extension working with Express.

Hmm technically you don't need an IDE to make good use of Typescript. It works very well as a standalone compiler installed using npm, and you get static type checking etc. which is really the point of Typescript IMHO --- if you don't care for static typing you might as well use JS directly.

Sure, once you've got this you might as well want good auto-completion, refactorings, etc, but this also applies to any language that's not bound to one specific IDE (C++, for example, or Java).

Re: TypeScript included with Visual Studio 2013 Update 2

#16
post #6

Earlier quoted context omitted.

My only gripe - VS is way too expensive, for my pocket at least. And you need VS to program in TS, Intellisense is that good. Sure, you can go with Express edition but then you don't have node.js extension - which kinda make the whole endeavour bit pointless (again, for me at least). Wish they would bring prices to the level of, for example, those of Jetbrains, or made node.js extension working with Express.

You don't need VS for TS. Eclipse and WebStorm support it pretty well. I've evaluated Visual Studio, Eclipse and WebStorm, and Eclipse and WebStorm are better for TypeScript development, at least if you're using Node.js.

In my experience, Typescript support in IntelliJ/Webstorm has always been sketchy --- so much that I find it quite unfair that they would mention this as a feature of the paying version.

I still use it, but I often get invalid highlighting, etc.. Then I update to the latest EAP because it's supposed to fix this particular issue... and then other appear. Hmm, annoying...

I tried the VS version as well, and there the highlighting and refactoring works very well... but the editor is waaaay slower so I always give up. Funny because it works fine when working with other languages such as C#.

Re: TypeScript included with Visual Studio 2013 Update 2

#17
While baking TypeScript into Visual Studio isn't a certainty of its future success (e.g. Silverlight), it is a good indicator of Microsoft's commitment to the language.

As a former CoffeeScript user, I love TypeScript: it's a more consistent language driven by a real language designer, Anders Heijlsberg, author of Turbo Pascal, Delphi, C#, and now TypeScript.

I am building 2 major projects using it:

- RavenDB Management Studio [1] - BitShuva, my Pandora-clone radio startup [2]

Both of these projects have benefited from TypeScript.

Microsoft has really built something quite nice here: a clean JavaScript with an optional, flexible type system, plus goodies from the future version of JavaScript (lambdas, classes, modules). I believe this simpler approach is superior to Dart's monolithic standard library + optional VM, superior to the Rubyist's take on JavaScript that is CoffeeScript.

[1]: https://github.com/JudahGabriel/ravendb/tree/Raven.Studio.Ht... [2]: http://bitshuva.codeplex.com

Re: TypeScript included with Visual Studio 2013 Update 2

#18

Microsoft has a potential winning strategy here vs. Dart. They are basically giving JS programmers no more than what they are directly asking for.

My only gripe - VS is way too expensive, for my pocket at least. And you need VS to program in TS, Intellisense is that good. Sure, you can go with Express edition but then you don't have node.js extension - which kinda make the whole endeavour bit pointless (again, for me at least). Wish they would bring prices to the level of, for example, those of Jetbrains, or made node.js extension working with Express.

both of these are coming: Nodejs Tools for Visual Studio will do TypeScript & be installable in VS Express shortly.

Re: TypeScript included with Visual Studio 2013 Update 2

#20
post #3

Microsoft has a potential winning strategy here vs. Dart. They are basically giving JS programmers no more than what they are directly asking for.

I think this is more directed at C# users. The focus of TS is to let tooling (specifically Visual Studio) do the same stuff it does in C#. They tried and failed to make VS good for JS.

    >They tried and failed to make VS good for JS
VS 2013 is actually very nice for Javascript development. The only place it really falls down still is management for pure JS projects. SublimeText still beats it there for grouping JS files together just by folder instead of Visual Studio's need for clunky "solution" and "project" files.

But Visual Studio's Angular support is awesome.

Post reply on HN