Live data from Hacker News

Announcing TypeScript 2.7

blogs.msdn.microsoft.com

81–89 of 89 posts

Re: Announcing TypeScript 2.7

#82
post #40

Earlier quoted context omitted.

First of all you probably shouldn't complain about the JS ecosystem if you barely know anything about the JS ecosystem. This is evidenced by you bundling several things in your "amd vs esnext vs systemjs and Babel vs browserify vs requireJS vs webpack" which aren't directly comparable. Babel is a compiler, ESNext is a language specification (now ES6 since after being been finalized more than 2 years ago). amd, system…

Thanks for taking the time to write out this reply - my initial comment sort of took on a life of its own, it wasn't originally supposed to turn into a rant and was never intended to be taken literally or to imply that it had been precisely crafted. I appreciate your responding to it nevertheless. I am actually very aware of the differences between the various components, but I am appalled at just how many cogs it ta…

You can still write simple apps by just putting in a script tag, that never stopped working. However, if you want to write a complicated app, then you've already accepted that you need complexity and thus you should be taking the time to evaluate different build systems, pick the right one, and settle on it. Like I said, there are multiple mature solutions to do that.

The fundemental problem is that you are either trying to write Hello Worlds with enterprise-grade build tools or that you're trying to write web apps with single script tags. Your hello world with React + Babel + Webpack is going to be big. That's the point, you're importing an library that is built to make extremely large complex web apps simple to make, therefore by definition that library has to be big and complex. But the joy is that you can then build out an entire web page with significant reactive functionality in a matter of hours.

I get that looking at a lot of options makes things look scary, but you only need to look at those options once you're ready to build something big. And big is going to be scary regardless. Until then, you will have no issues just importing a script into your web page for the little things.

Re: Announcing TypeScript 2.7

#84
post #38

Personally I've moved away from the TypeScript compiler and towards the betas of `babel@7` and `@babel/preset-typescript` ( https://www.npmjs.com/package/@babel/preset-typescript ). It seems to be faster and there is better integration with `jest`, `rollup`, various css-in-js libraries and (maybe in future?) `create-react-app`. (I still run `tslint` and `typescript` in the background for type-checking and linting. An…

I'm not sure if I understand fully this babel typescript integration. Can you help me understand this? What's the point? So in future babel would be able to parse TS file and output JS file with all the transformations it supports? So it's useful if you want to use some new EsNext feature currently not supported by TS compiler? Is this the main advantage? Because for me it looks like a pretty weak reason (TS has impr…

For example, the React team provide a set of codemods to help automatically upgrade codebases when there is a new version of React (https://github.com/reactjs/react-codemod). Until `recast` gets TypeScript support, everybody who uses TypeScript has to do this repetitive work manually.

Another example is how many `css-in-js` libraries require Babel plugins to work their best (e.g. https://github.com/emotion-js/emotion/tree/master/packages/b...).

And additionally there are also plugins that optimize React code (e.g. https://github.com/thejameskyle/babel-react-optimize).

Re: Announcing TypeScript 2.7

#85

Earlier quoted context omitted.

Right, I forgot to mention the duplication of build systems between TypeScript’s own, webpack, npm, gulp, and others. Ironic that you speak of "blindly mashing things together" - how many different build systems did you mash together there, hidden behind a meta npm package? The web needs CMake or meson more than C/C++ ever did.

Don't be act like an idiot simply to make a point. You simply come across as some elitist programmer who can't be bothered to learn frontend tooling. All of those technologies are simply Javascript running serverside (or developer clientside during the development). I sent you a gulp example because gulp it's very easy to use and you can quickly build customized build processes with it. "gulp-typescript-babel" is sim…

You've crossed into incivility in this thread. We ban accounts that do that, so please read https://news.ycombinator.com/newsguidelines.html and use the site as intended—i.e. posting civilly and substantively, or not at all—regardless of how annoying another comment might be. We all get bitten by the annoyance bug sometimes.

Re: Announcing TypeScript 2.7

#86
post #85

Earlier quoted context omitted.

Don't be act like an idiot simply to make a point. You simply come across as some elitist programmer who can't be bothered to learn frontend tooling. All of those technologies are simply Javascript running serverside (or developer clientside during the development). I sent you a gulp example because gulp it's very easy to use and you can quickly build customized build processes with it. "gulp-typescript-babel" is sim…

You've crossed into incivility in this thread. We ban accounts that do that, so please read https://news.ycombinator.com/newsguidelines.html and use the site as intended—i.e. posting civilly and substantively, or not at all—regardless of how annoying another comment might be. We all get bitten by the annoyance bug sometimes.

I apologize (that goes for both you and mainly for ComputerGuru), this was not my purpose here. Please do delete this comment thread as it clearly goes against what HN stands for. Negativity isn't one of my values and I'm sorry for it. As you said, the annoyance bug bit me hard.

Re: Announcing TypeScript 2.7

#87
post #85

Earlier quoted context omitted.

You've crossed into incivility in this thread. We ban accounts that do that, so please read https://news.ycombinator.com/newsguidelines.html and use the site as intended—i.e. posting civilly and substantively, or not at all—regardless of how annoying another comment might be. We all get bitten by the annoyance bug sometimes.

I apologize (that goes for both you and mainly for ComputerGuru), this was not my purpose here. Please do delete this comment thread as it clearly goes against what HN stands for. Negativity isn't one of my values and I'm sorry for it. As you said, the annoyance bug bit me hard.

Thanks! It's really only a problem if it's a repeated pattern. It happens to me too, and most others.

Re: Announcing TypeScript 2.7

#88
post #38

Personally I've moved away from the TypeScript compiler and towards the betas of `babel@7` and `@babel/preset-typescript` ( https://www.npmjs.com/package/@babel/preset-typescript ). It seems to be faster and there is better integration with `jest`, `rollup`, various css-in-js libraries and (maybe in future?) `create-react-app`. (I still run `tslint` and `typescript` in the background for type-checking and linting. An…

What are you missing with Jest in TypeScript? For me, ts-jest is completely seamless.

Re: Announcing TypeScript 2.7

#89
post #87

Earlier quoted context omitted.

I apologize (that goes for both you and mainly for ComputerGuru), this was not my purpose here. Please do delete this comment thread as it clearly goes against what HN stands for. Negativity isn't one of my values and I'm sorry for it. As you said, the annoyance bug bit me hard.

Thanks! It's really only a problem if it's a repeated pattern. It happens to me too, and most others.

Thank you for that intervention, it snapped me out of a negativity circle.
Post reply on HN