News for hackers. Stuff that matters.
Re:Design Doc: Use JavaScript instead of TypeScript for inte... by pkukkapalli on Monday June 08, 2020 @11:47PM (#23463466)
I think there is a way to get all of the "good parts" of Typescript, mainly type checking, without introducing the bad, mainly transpiling. I recently started just running Typescript on Javascript files, where all of the types are specified via JSDocs. It was a refreshing experience, and I highly recommend. The Typescript website[1] has pretty good documentation for it.

[1]: https://www.typescriptlang.org/docs/handbook/jsdoc-supported...

Re:Design Doc: Use JavaScript instead of TypeScript for inte... by itsnotlupus on Tuesday June 09, 2020 @01:16AM (#23463871)
Unfortunately their jsdoc stuff only exposes a subset of their typing capabilities, so you're leaving some advanced type goodies on the table.
Re:Design Doc: Use JavaScript instead of TypeScript for inte... by kiliancs on Tuesday June 09, 2020 @01:15PM (#23468560)
They've been adding features on every release for at least a couple releases. Not sure when you last checked, but regardless, it's getting better.
Re:Design Doc: Use JavaScript instead of TypeScript for inte... by biomene on Tuesday June 09, 2020 @04:44AM (#23464901)
Came here to upvote typescript with jsdocs too. We use it in our project and it’s been really helpful. No overhead and you get the nice dev experience of typed code. Been doing it for 2 years, have yet to encounter a situation that would be solved by using ts compilation.
Re:Design Doc: Use JavaScript instead of TypeScript for inte... by joquarky on Wednesday June 10, 2020 @11:34AM (#23478223)
I much prefer JS+JSDoc over Typescript when writing my own code. Typescript makes me feel overly constrained.

Also, I've been doing web dev for 25+ years now and I don't like the trend backward to waiting for code to "compile".

Although if you're going to have to compile, Svelte looks like a nice middle-ground.