News for hackers. Stuff that matters.
Re:Fun vs. Computer Science (2016) by didibus on Wednesday August 30, 2017 @10:20PM (#15137695)
Ya, I would probably be happy with TypeScript. How's the backend story? Is using it with node easy? Is there an interactive mode, or just quick transpilation?
Re:Fun vs. Computer Science (2016) by SomeCallMeTim on Monday September 04, 2017 @01:13PM (#15169507)
It's pretty trivial to use with Node. You just need to have a source folder, set up your tsconfig.json file with your preferred options, and then run:

    tsc --watch
There's also an REPL for Node here:

    https://www.npmjs.com/package/ts-node
I find it a bit tricky to do anything complex in, though. Since TypeScript is mostly ES2015 anyway, when I want interactive anything I usually just use an ES2015 interpreter (like Node itself). The types usually make interactive stuff more challenging.