The WORST part about JavaScript 🤦♂️ #coder #javascript #webdev #software #technology #coding
Company
Warp
Date published
Feb. 26, 2024
What programmers hate about JavaScript is NPM. It's slow, it takes up a lot of space, and it handles peer dependencies in a really weird way. These reasons are why I chose performant NPm over NPM, and yes, that's the actual name of the tool despite also being written in JavaScript. PNPM or performant NPM is two times faster because of the way it handles dependencies. With NPM it stores all your packages in the node modules folder of your project. PNPM will store it in one spot on your disk and then link it to your project when needed. The idea of a global store for your packages really changes how NPm works because first of all it will speed up the installation of those dependencies and also allow for packages to reference explicit dependencies. And also the learning curve for PNPm is really small because the commands are really similar to NPM and yarn. So PNPm is great if you are developing in JavaScript and if you're waiting for that NPM install to finish.