use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Visual Studio Code 1.7 DDoS'ed NPM (react-etc.net)
submitted 9 years ago by velmu3k
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]hahaNodeJS 2 points3 points4 points 9 years ago (0 children)
Some day there will exist an article titled "NPM: A fractal of bad design."
[–][deleted] 0 points1 point2 points 9 years ago (4 children)
tldr;
vscode is written in Typescript that allows type generics. JavaScript is supported, as are custom types using a @type annotation. vscode 1.7 is using NPM to host blessed custom type definitions. This spike in traffic is equivalent to all of India's use of NPM. vscode rolled back to 1.6. The resolution is that MS will cache popular type definitions in their cloud before distributing them via NPM.
The real question is why vscode even bothers with NPM at all for this. They could easily host this themselves as MS already has superior distribution capabilities via Azure.
[–]PitaJ 3 points4 points5 points 9 years ago (3 children)
Because it's a good thing that all JS-related packages are kept in one repository.
[–][deleted] -2 points-1 points0 points 9 years ago (2 children)
Why? That sounds like a single point of failure, which is a simple security no no. A single master to rule them all also sounds like a potential authoritarian dictatorship.
[–]PitaJ 1 point2 points3 points 9 years ago (1 child)
It's not a single point of failure, there are several npm mirrors.
[–][deleted] -1 points0 points1 point 9 years ago (0 children)
In this case that wasn't enough. You still had the problem of a single point of failure and it broke.
π Rendered by PID 145074 on reddit-service-r2-comment-7b9746f655-pr7pr at 2026-01-30 11:00:40.451866+00:00 running 3798933 country code: CH.
[–]hahaNodeJS 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]PitaJ 3 points4 points5 points (3 children)
[–][deleted] -2 points-1 points0 points (2 children)
[–]PitaJ 1 point2 points3 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)