Live data from Hacker News

Everything You Wanted to Know About Yarn Package Manager

atatus.com

1–10 of 28 posts

Re: Everything You Wanted to Know About Yarn Package Manager

#7
post #4

Why can't all of this be patched in npm ? Why do we have to create a new tool every time ? It makes no sense and honestly makes me want to tear my hairs.

A lot of people say this and I'll repeat the answer: go look at npm's source code and tell me you'd like to "patch in" a large change such as the one Yarn takes on.

No seriously, go look at their source code. In particular go look at the caching code, one of the big things that Yarn fixes. You think their time would have been better spent hacking on that?

Re: Everything You Wanted to Know About Yarn Package Manager

#9
post #4

Why can't all of this be patched in npm ? Why do we have to create a new tool every time ? It makes no sense and honestly makes me want to tear my hairs.

My favorite thing about the post* that introduced Yarn, itself a rewrite of a basic component, is that the author(s) unironically began with "In the JavaScript community, engineers share hundreds of thousands of pieces of code so we can avoid rewriting basic components, libraries, or frameworks of our own."

*https://code.facebook.com/posts/1840075619545360?_fb_noscrip...

Re: Everything You Wanted to Know About Yarn Package Manager

#10
post #4

Why can't all of this be patched in npm ? Why do we have to create a new tool every time ? It makes no sense and honestly makes me want to tear my hairs.

I don't get why people say this. You're acting like the npm team is desperate for contributions and fixes and the Yarn people are like "No! We'll make our OWN tool!".

It's the literal opposite. npm hasn't been open to contributions or fixes for years.

Post reply on HN