
I did a talk today on NgRx
ie. The angular version of Redux

I did a talk today on NgRx
ie. The angular version of Redux
How did typeof null === ‘object’ ?
We’ve all heard it was some kind of a bug in the original JavaScript source code, too late to fix now, but what kind of bug was it?
Dr Axel Rauschmayer (of course) explains it very well.
A simple introduction to function composition which also happens to be the way RxJS replaced its heavy use of prototype methods with simple to implement and compose functions.
“React Native has a bridge API to communicate between native and React Native. While it works as expected, it is extremely cumbersome to write.”
These days you should be shipping two sets of bundles with your webapp. One which targets IE11 and the other that targets JavaScript.
Browsers that understand type=”module” ignore scripts with a nomodule attribute. This means you can serve a module-based payload to module-supporting browsers while providing a fallback to other browsers. The ability to make this distinction is amazing, if only for performance! Think about it: only modern browsers support modules. If a browser understands your module code, it also supports features that were around before modules, such as arrow functions or async-await. You don’t have to transpile those features in your module bundle anymore! You can serve smaller and largely untranspiled module-based payloads to modern browsers. Only legacy browsers get the nomodule payload.

Babel transpiles for..of into a big piece of bloat but really you should be shipping two bundles these days.
One that targets es5 and ie11.
The other one that uses …JavaScript (ie. modules, no transpilation at all).
The web always wins in the long run. On mobile (ahem, Apple) it’s going to take a little longer.
Quoting from the article:
*I built a PWA and published it in 3 app stores. Here’s what I learned.*
Summary: Turning a web app into a Progressive Web App (PWA) and submitting it to 3 app stores requires about a month of work, a few hundred dollars, and lots of red tape.
“Last 2 versions” babel setting considered harmful mainly because it locks you into the past forever.
After two years, 220 screens, and 120,000 lines of javascript, Airbnb is moving away from React Native. The first blog post in a series of five outlining their experience with fact native and their reasons for moving back to native development.