Live data from Hacker News

TypeScript included with Visual Studio 2013 Update 2

blogs.msdn.com

51–60 of 111 posts

Re: TypeScript included with Visual Studio 2013 Update 2

#51
post #46

Earlier quoted context omitted.

I haven't found any disadvantage to TypeScript over JavaScript. It's also trivial to switch, since compilation mostly just removes type annotations. I have however been annoyed at not being able to use sweet.js macros.

I'm still on an earlier version of TypeScript, so I don't know if later versions have fixed this. We ran into trouble when creating knockout view models in type script. Basically, TypeScript was losing track of 'this', and the trick of using var self=this in the the "constructor" wasn't valid. We made it work, but it wasn't pretty and it certainly wasn't idiomatic typescript. Basically the problem was that we were tr…

TypeScript's ES6 lambdas are actually closures over `this` as well, the compiler will insert `var _self = this;` in the enclosing scope if you have a lambda.

Yeah, you do have to know JavaScript, since TypeScript only adds a few ES6 features and types.

Re: TypeScript included with Visual Studio 2013 Update 2

#52
post #49

Earlier quoted context omitted.

Like HAML or Jade?

Do they have: 1) strong IDE support 2) rich control libraries ?

XAML doesn't necessarily have strong IDE support, either. Although integrated into VS, it really is no comparison to the "REPL" of HTML/CSS + your favorite text editor and a browser.

Re: TypeScript included with Visual Studio 2013 Update 2

#53
post #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 Managem…

> "As a former CoffeeScript user, I love TypeScript: it's a more consistent language driven by a real language designer" I have a lot of respect for Anders Hejlsberg but this is a pretty unfair slight against Jeremy Ashkenas just because he hasn't created another language before. CoffeeScript was pretty revolutionary in its approach, as evidenced by the 30+ other to-JS languages that followed it. As long as you agree…

I'd also argue that a community, and at the very least a team, is what designs a language and not just a single person. The language might start as a vision by a single person but ultimately it is driven by something more collaborative.

I disagree and think it's a good way to make a language bad. The first way to make mistakes in a language is not to look at the math. The second way is to have no "taste."[1] Communities are not widely regarded for their ability to design cohesive tasteful systems. That comes from a singular vision that is realized by a community.

[1] It's hard to provide a succinct definition of taste in a language, but mostly it comes from picking a style of programming and then ruthlessly cutting features which can't fit into that style.

Re: TypeScript included with Visual Studio 2013 Update 2

#54
post #52
post #49

Earlier quoted context omitted.

Do they have: 1) strong IDE support 2) rich control libraries ?

XAML doesn't necessarily have strong IDE support, either. Although integrated into VS, it really is no comparison to the "REPL" of HTML/CSS + your favorite text editor and a browser.

Not sure I understand your use of REPL - in Visual Studio you edit XAML in the right pane, and the change is reflected in the left pane as you type. That's more efficient than editing HTML or CSS in a text editor, saving, switching to browser, refreshing page. Can you explain?

Re: TypeScript included with Visual Studio 2013 Update 2

#55
post #28

Earlier quoted context omitted.

That's probably because TypeScript has more in common with CoffeeScript than Dart as a language. Dart is a full featured language that can stand on it's own and has it's own runtime. TypeScript is a superscript of javascript. It doesn't have a runtime - it gets transcompiled into javascript. If coffeescript is for writing javascript like you would write python or ruby, then typescript is for writing javascript like y…

> or maybe limited my use of TypeScript to just type annotations. I was under the impression that was most if not all of typescript. What else remains? Classes?`

AFAIK modules

Re: TypeScript included with Visual Studio 2013 Update 2

#56
post #49

Earlier quoted context omitted.

Like HAML or Jade?

Do they have: 1) strong IDE support 2) rich control libraries ?

1) There are ST plugins if that counts 2) No, though I'm sure you could make do with snippets for now, and web components in the future.

Re: TypeScript included with Visual Studio 2013 Update 2

#57
post #8

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.

If you have your own startup or small company or are a student, Microsoft has several options aimed at you: - BizSpark for startups( http://www.microsoft.com/bizspark/ ) - DreamSpark for students ( https://www.dreamspark.com/ ) and I think there are other options if you contact someone at your local Microsoft office. I've just started using BizSpark (for a side project with 2 friends, so the "startup" term is a bit l…

The first hit/dose is free.

On the other hand you do have companies that do make millions that are bailing on certain aspects of Microsoft tools and servers due licensing costs and increases. I've been involved in IT budgeting for almost two decades and the CFOs don't always sign the check just because it's an IBM/Microsoft/Oracle solution.

Software cost for my side projects: $0

Re: TypeScript included with Visual Studio 2013 Update 2

#58

Earlier quoted context omitted.

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.

Sublime + SublimeLinter-JSHint + Chrome DevTools

[deleted]

Re: TypeScript included with Visual Studio 2013 Update 2

#59
post #52

Earlier quoted context omitted.

XAML doesn't necessarily have strong IDE support, either. Although integrated into VS, it really is no comparison to the "REPL" of HTML/CSS + your favorite text editor and a browser.

Not sure I understand your use of REPL - in Visual Studio you edit XAML in the right pane, and the change is reflected in the left pane as you type. That's more efficient than editing HTML or CSS in a text editor, saving, switching to browser, refreshing page. Can you explain?

That's entirely dependent on your workflow isn't it? I can set up a workspace within dev tools and edit HTML/CSS/JS on the fly and have the changes reflected on disk and on screen without ever losing sight of my work. Add in the networking tools (timelines, profiles etc..) and I have full featured 'IDE' that I can also browse hackernews with.

Re: TypeScript included with Visual Studio 2013 Update 2

#60

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.

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.

[deleted]
Post reply on HN