Live data from Hacker News

Announcing TypeScript 2.2

blogs.msdn.microsoft.com

91–100 of 123 posts

Re: Announcing TypeScript 2.2

#91
post #75

Earlier quoted context omitted.

Why do you want turn avoid Visual Studio out of curiosity? It's pretty great now.

I was about to say "Visual Studio doesn't work in Linux," but apparently it (or at least Visual Studio Code) actually does now. Living in the future is weird.

FYI VSCode has always been an electron app, and thus always worked on all platforms.

Visual Studio on the other hand is a gigantic IDE that only runs on Windows.

Re: Announcing TypeScript 2.2

#92
post #78

Earlier quoted context omitted.

Yeah, that's what I use with Webpack. It's just one more rule on Webpack config, so no reason not to do it. There's many things that are out of scope of TS that are better handled by Babel (like embedding corejs methods based on target browser versions).

If you're using Webpack is it possible to gradually opt files into TS type checking _without_ having to rename them, since you can specify which filename patterns loaders apply to?

It might be worth checking ts-loader or awesome-typescript-loader. I'm not sure how it detects js vs ts in those pipelines. TypeScript can also "compile" JS to check for syntax and other errors, so it may still be extension based. An interesting scenario though.

Re: Announcing TypeScript 2.2

#93
post #49

Earlier quoted context omitted.

The price gets lower each year for the first few years you renew your license. My company pays for my license but I think it's hella worth it and I'd pay it on my own if I had to. I avoid VS like the plague and I've never really felt at home in an IDE until I started using IntelliJ. It's the only thing that was able to get me off of Notepad++

I also avoid VS, but VSCode is nothing at all like its big brother. It's actually very quick and lean. If you're interested in TypeScript at all, the two were made for each other. I'd suggest giving it a try. Just note it's closer to a text editor with IDE functionality, rather than a full-blown IDE itself.

I can pretty much get that and more with Notepad++ or Sublime, though. I've moved back to vim for simple text editing, N++ for casual writing and organizing my thoughts. Is there any specific feature that makes it better than other editors in your book?

Re: Announcing TypeScript 2.2

#94
post #19

Earlier quoted context omitted.

IntelliJ Ultimate user here, writing and refactoring TS works quite well. There are some minor issues (e.g. sometimes it doesn't show the usual "this method is overridden in a child class" indicator), and refactoring likes to randomly modify somearray['foo'] when renaming a someclass.foo property, but I can live with that.

How is Flow looking in webstorm? As good as their typescript support?

I haven't tried Flow, so I can't say.

Re: Announcing TypeScript 2.2

#95
post #48

Earlier quoted context omitted.

Yeah, I personally don't mess around with Babel but I imagine you could just take TypeScript's ES6 output and feed it through babel in your gulp/webpack pipeline.

Some people were doing that before TS got async/await compilation directly to ES5 (in TS 2.1). Right now, having Babel in the TS pipeline is not that useful anymore.

It's very useful if you want to use native APIs that arrived with es6: Promise, Map etc. TypeScript doesn't shim those

Re: Announcing TypeScript 2.2

#96
post #13

Speaking of tooling -- has anyone had a good experience with Typescript in IntelliJ/Webstorm? It does a fantastic job figuring out ES6 code but seems to totally choke on Typescript. I'd like to avoid switching to Visual Studio.

My proposition is out of the box but maybe get a chance to VSCode?

Moving a team of ~20 engineers from IJ to VSCode for a single technology is a nonstarter. IJ is still the preferred IDE for the backend and works perfect for everything we've used that's not Typescript.

Re: Announcing TypeScript 2.2

#97
post #32

Earlier quoted context omitted.

Well that solved some problems (e.g. importing from react-router/lib/*) but autocomplete for TSX is non-functional. Still pretty frustrating considering ES6 works out of the box.

I could be doing things wrong but in my exp, Webstorm's autocomplete is non-existent for anything that you import

Strange, it seems to work fine for me. Find usages on the other hand is a totally random mess.

Re: Announcing TypeScript 2.2

#98
post #42
post #13

Speaking of tooling -- has anyone had a good experience with Typescript in IntelliJ/Webstorm? It does a fantastic job figuring out ES6 code but seems to totally choke on Typescript. I'd like to avoid switching to Visual Studio.

For passersby who were confused like I was: IntelliJ Community Edition has absolutely no support for Javascript or Typescript, which is not noted clearly in the help docs. You apparently need Ultimate Edition to get it. I was real excited that I could finally use the same IDE for front-end and back-end too... :/

>I was real excited that I could finally use the same IDE for front-end and back-end too... :/

And that editor has the absolute best VIM keybinding implementation of any popular IDE outside real VIM / NeoVIM. If you haven't looked yet, this is what finally got me out of the terminal for coding: https://plugins.jetbrains.com/idea/plugin/164-ideavim

Re: Announcing TypeScript 2.2

#100
post #93

Earlier quoted context omitted.

I also avoid VS, but VSCode is nothing at all like its big brother. It's actually very quick and lean. If you're interested in TypeScript at all, the two were made for each other. I'd suggest giving it a try. Just note it's closer to a text editor with IDE functionality, rather than a full-blown IDE itself.

I can pretty much get that and more with Notepad++ or Sublime, though. I've moved back to vim for simple text editing, N++ for casual writing and organizing my thoughts. Is there any specific feature that makes it better than other editors in your book?

Apart from Intellisense completion, a full featured integrated debugger, version control integration wich supports line wise staging, a diff viewer, a fast integrated terminal that even gets link detection in the next release, proper variable renaming and a working "Go to Definition" that is even implemented in most of the third party language plugins?

No. Pretty much the same as Notepad++.

Post reply on HN