CSS: A New Kind of JavaScript

In this wacky and satirical post, Heydon Pickering describes a wild new technology called Cascading Style Sheets that solves a lot of the problems you might bump into when styling things with JavaScript:

A good sign that a technology is not fit for purpose is how much we have to rely on workarounds and best practices to get by. Another sign is just how much code we have to write in order to get simple things done. When it comes to styling, JavaScript is that technology.

CSS solves JavaScript’s styling problems, and elegantly. The question is: are you willing to embrace the change, or are you married to an inferior methodology?

Yes, this is a funny post but the topic of CSS-in-JS is hot and quite active. We recently shared a video of Bruce Lawson's excellent talk on the subject and published a roundup of chatter about it as it relates to React. Chris also linked the conversation back to the age-old question of how we deal with unused CSS.

Direct Link to ArticlePermalink

The post CSS: A New Kind of JavaScript appeared first on CSS-Tricks.



from CSS-Tricks https://ift.tt/2mee7U1

Comments

Popular posts from this blog

Fitting Text to a Container

GLKit Tutorial for iOS: Getting started with OpenGL ES

Data Structures & Algorithms in Swift Full Release Now Available!