News for hackers. Stuff that matters.
Re:TypeScript at Slack by shouldbworking on Tuesday April 11, 2017 @10:24PM (#14094240)
To me it doesn't matter that typescript replaces js because TS is forwards and backwards compatible, something nobody else is really attempting.

typescript (unlike Babel) is designed to output JavaScript that's as close as possible to what a human would write. If you get tired of Typescript you just transpile your code down to js one last time and forget about it.

Look at the output of Babel vs Typescript and you'll see what I mean about human friendliness. IMO the best tools are the ones easy to get rid of and typescript definitely scratches that itch.

Re:TypeScript at Slack by woah on Wednesday April 12, 2017 @01:53AM (#14095128)
Babel actually started with the express goal of outputting human-readable Javascript. It obviously hasn't stayed that way. IMO, Typescript hasn't stayed that way either. Trying to shoot for a compilation target that is useable as source code is pretty foolish.

The nice thing about Flow is that the compilation step is nothing more than stripping out the typing syntax. It is ACTUALLY easy to get rid of. I will say that the tooling is way better in Typescript.

Re:TypeScript at Slack by dotancohen on Wednesday April 12, 2017 @01:09AM (#14094929)
> the best tools are the ones easy to get rid of

Thank you, you've just summed up the entire proprietary vs FOSS debate _and_ the bus factor in a way that anybody could understand! I am definitely going to be repeating this wisdom!