Source: Angular Forms in Depth
Today our team is happy to present our latest release with TypeScript 2.2!
Before we go into the details of the various improvements, we should first consider why performance of ES2015+ features matter despite the widespread usage of Babel in modern web development:
- First of all there are new ES2015 features that are only polyfilled on demand, for example the Object.assign builtin. When Babel transpiles object spread properties (which are heavily used by many React and Redux applications), it relies on Object.assign instead of an ES5 equivalent if the VM supports it.
- Polyfilling ES2015 features typically increases code size, which contributes significantly to the current web performance crisis, especially on mobile devices common in emerging markets. So the cost of just delivering, parsing and compiling the code can be fairly high, even before you get to the actual execution cost.
Ben Nadel demonstrates that Internet Explorer (IE) 10 and 11 won’t populate the .stack property of an Error until it’s thrown. And, reminds himself to always throw Errors in a Promise chain.
Source: Introduction to Ionic 2
In this post we cover best practices for writing Node.js RESTful APIs – including route naming, authentication, API testing or using proper cache headers.