Top picks — 2017 June

A Unified Styling Language

I need to admit that for a first time when I saw JSX in React I thought it is a joke. I really did my best to master famous separation of concerns. Then people started porting CSS into JavaScript — crazy idea I thought. Nowadays my mindset changed and I really love tha idea of real separation od concerns (not separation of technologies that I was practicing for years). Mark Dalgleish published a fantastic article about it. I have read many posts about this subject but non of them is as wll explained and convincing as this one is. It isn’t a three minutes read but it is wort it.

Stuff at the Top of an SVG

https:[email protected]/stuff-at-the-top-of-an-svg-f3ad198eb54e

Typical SVG exported straight from Adobe Illustrator, Sketch or any other software contains a lot of meta declarations. Should we keep it or should we safety delete bunch of stuff? Peter Nowell published a great explanation of all declarations and helps us to decide which parts of SVG we can bin.

Exploring ES2017 Decorators in JavaScript

The title is very misleading as the spec for ES2017 is finalized and decorators are definitely not part of a new specification but this article is a very good primer to start with decorators. It is a mechanism well known in other programing languages, implemented and very heavily used in Angular 2 (thanks to power of TypeScript). It would be very cool to see decorators in the language.

Object rest and spread properties

Mathias Bynens just joined the V8 team at Google and he managed to implement a new feature to Chrome’s engine — rest and spread are coming with the version 60. This post explains the details and shows practical examples.

Results of the Ultimate CSS Survey 2017

Annual CSS survey made by SitePoint is always a great source of front-end important insights. The most surprising for me is number of people still supporting IE8 (and even older browsers).

Webpack 3: Official Release!!

We saw a big release of webpack 2 just few months — perfect timing to release another major release. Webpack 3 just landed with few highly requested features like: scope hoisting and “magic comments”. Maintainers of this popular module bundler confirm that for 98% of users the migration from previous version to current one is smooth without any breaking changes (doesn’t apply to plugin creators). Cool cool!

Connect: behind the front-end experience

Benjamin De Cock from stripe shares a number of useful advices and use cases for cool new browser features like: CSS grid module, 3D animations, Web Animation API and Intersection Observer. It is such a good read and it is really cool to see a project in the wild that is that heavily packed in modern features.

Embracing the power of styled-components

If we are talking about styles in JavaScript — styled-components is one of the most frequently recommended way of doing it. Personally it took me a while to understand the concept of it but it finally clicked after this explanation! Thanks for writing it down Fernando.

Move Modal in on a Path

A cool little idea by Chris Coyier on CSS Tricks. I’m sure that the use case for this feature can be much more creative though. Works nice with native CSS feature detection using @supports keyword — I published a whole article about it if you are not familiar with it yet.