4 ms·
This is a somewhat unrelated question. I'm a systems programmer (I spend most of my days in the land of C and Go). I do understand the basic concepts of web ap
by gell_mann 10y ago
This is a somewhat unrelated question.
I'm a systems programmer (I spend most of my days in the land of C and Go). I do understand the basic concepts of web apps and how you develop one. I have even built a few websites using Rails.
Can somebody please explain to me:
1) How does npm fit in in the process of developing a web app. How does it manage the js files / libraries and where does it place them?
2) How is yarn going to make your life easier
Please go easy on me.
- steveklabnik 10y ago1. npm == bundler. One difference: it puts the source of your dependencies into a node_modules folder in the project itself, rather than in some global spot 2. npm doesn't have bundler's lockfile, but this does. It's also faster.
- gell_mann 10y agoI never guessed building a package manager / dependency tracker could be such a complex problem.
- steveklabnik 10y agoIt's really tough! I like this post, if you want to learn more: https://medium.com/@sdboyer/so-you-want-to-write-a-package-manager-4ae9c17d9527 https://medium.com/@sdboyer/so-you-want-to-write-a-package-m...