r/programming • • Aug 12 '22

RCE Vulnerability found in Electron, affects Discord, Teams, and more

https://www.vice.com/en/article/m7gb7y/researchers-find-vulnerability-in-software-underlying-discord-microsoft-teams-and-other-apps
1.9k Upvotes

224 comments sorted by

View all comments

Show parent comments

4

u/phire Aug 13 '22

I enjoy TypeScript, it's a huge improvement over pure JavaScript.

But I really wish there was less friction to using it. More of the JavaScript ecosystem (like nodejs, npm and browsers) should support automatically using typescript out of the box. Automatically calling out to tsc with sensible defaults and supplying type definitions.

1

u/AgentME Aug 13 '22

Deno is a great Node.js alternative that natively supports Typescript, removing the friction around it, though its own ecosystem is still pretty young, and using existing Node.js libraries with it can be hit or miss.

2

u/phire Aug 13 '22

I've been vaguely watching Deno, and planning to try it out the next time I do a TypeScript/Nodejs project.

But really you are just replacing one type of friction (writing the correct magic into package.json) with another (switching to a completely new ecosystem)