“Zones can perform an operation - such as starting or stopping a timer, or saving a stack trace - each time that code enters or exits a zone. They can override methods within our code, or even associate data with individual zones.”— Pascal Precht, blog.thoughtram.io
“Samsung Galaxy S7’s 4x pixel density means a notification image will typically be over 150KB. To add to that, the UK has 650 electoral constituencies, so there’s a chance that a user might have received 650 separate images — downloading over 97MB over the course of the evening. Clearly, that’s not a…”— Alastair Coote, medium.com
“In asynchronous code flows, it is commonplace to execute two or more tasks concurrently. While Async Functions make it easier to write asynchronous code, they also lend themselves to code that is serial. That is to say: code that executes one operation at a time. A function with multiple await expre…”— Nicolás Bevacqua, ponyfoo.com
“npm is great and I'm glad it exists, but I'm also glad that someone is addressing its problems.”— Jergason, twitter.com
“Wow. Yarn. First install, 30 seconds, 2nd fresh install, 13s (compared to npm a few minutes). Interesting.”— Rem, twitter.com
“At Facebook we're already using Yarn in production, and it's been working really well for us. It powers the dependency and package management for many of our JavaScript projects. With each migration we've enabled engineers to build offline and helped speed up their workflow.”— Sebastian McKenzie, code.facebook.com
“Yarn is a new package manager that replaces the existing workflow for the npm client or other package managers while remaining compatible with the npm registry. It has the same feature set as existing workflows while operating faster, more securely, and more reliably.”— Sebastian McKenzie, code.facebook.com
“Initially, following the prescribed best practices, we only checked in package.json and asked engineers to manually run npm install. This worked well enough for engineers, but broke down in our continuous integration environments, which need to be sandboxed and cut off from the internet for security…”— Sebastian McKenzie, code.facebook.com
“This also highlights a shrewd move on the part of npm: a clear decoupling between the npm registry and client, with a well-defined protocol between the two. The strength of Node is in the staggering size of its ecosystem; how those bits end up on disk is an implementation detail. This smart separati…”— Tom Dale, news.ycombinator.com
“Time to install React Native's dependencies on a MacBook Pro (Mid 2015) in different scenarios.”— Yarn Package, yarnpkg.com
“The team working on Yarn reached out to the major frameworks and made sure that Yarn would be a good fit for projects written using them.”— Yehuda Katz, yehudakatz.com
“Yarn also shows that one of the world’s largest tech companies, which is already behind hugely popular JavaScript projects like React, is invested in and committed to the ongoing health of the npm community. That’s great news for JavaScript devs everywhere.”— Isaac Z. Schlueter, blog.npmjs.org
“By breaking these steps down cleanly and having deterministic results, Yarn is able to parallelize operations, which maximizes resource utilization and makes the install process faster. On some Facebook projects, Yarn reduced the install process by an order of magnitude, from several minutes to just…”— Sebastian McKenzie, code.facebook.com
“Coroutines are functions that runs asynchronously. The body of coroutines are generator functions, each time a promise is yielded inside a coroutine it blocks until the promise is resolved or rejected. Each coroutine execution returns a promise that is resolve when the coroutine returns, or rejected…”— yosbelms, github.com
“Most modern web browsers have tools that could help identify the various things that could slow a web page down. However, rapid release cycles make it hard to do regular performance audits. Tools exist to automate network performance audits. It would be great to have a tool that automate the renderi…”— axemclion, github.com
“This is because the equality operator == does type coercion, meaning that the interpreter implicitly tries to convert the values before comparing. On the other hand, the identity operator === does not do type coercion, and thus does not convert the values when comparing.”— Andreas Grech, stackoverflow.com
“The way a NFA works is to consume one character at a time and compare that to a state graph which it has built up.”— Nathan Hammond, nathanhammond.com
“We value API stability because at Facebook we have more than 20 thousand components using React. This means that we are reluctant to change public APIs or behavior because teams depend on it both externally and internally.”— Facebook React Team, facebook.github.io
“Components written by different people should work well together. It is important to us that you can add functionality to a component without causing rippling changes throughout the codebase.”— Facebook React Team, facebook.github.io
“Testing React components seems simple at first. Then you need to test something that isn't a pure interaction and things seem to break down.”— Josh Dover, gist.github.com