Containers Queries, Cloning VMs and Dependency Injection
Container Queries are Here, and They are Huge
Container queries make responsive web development much saner and expand what features UI components can deliver in isolation without depending on the page context. Expect a lot of hype about this in the following weeks.
Instead of relying on the viewport for styling input such as available space, developers now have the ability to query the size of in-page elements too. This capability means that a component owns its responsive styling logic. This makes the component much more resilient, as the styling logic is attached to it, no matter where it appears on the page. — @container and :has(): two powerful new responsive APIs landing in Chromium 105
Cloning a Running Virtual Machine in Less than Two Seconds
I thought VMs became a no-go technology for application development after Docker. To my surprise, this article explains how MicroVMs power the CodeSandbox environments and points to its broader user in the serverless industry.
Virtual machines are often seen as slow, expensive, bloated and outdated. And I used to think the same, but a lot has changed over the past few years. VMs power most of the cloud (yes, even serverless functions!), so many great minds have been working on making VMs faster and lightweight. And well... they've really outdone themselves. — How we clone a running VM in 2 seconds
Comprehensive Explanation About Dependency Injection in Typescript
I learned about dependency injection while reading the highly recommended Clean Architecture book. It’s a powerful instrument to make our app’s architectures plug-and-play. This article provides a comprehensive view of dependency injection tailored to Typescript development.
One of the most evident (but not only) is that it helps us test things that would be very difficult or impossible to do without. (…) Dependency injection is, in its essence, about parametrizing things previously hardcoded in functions/classes, so we can control these functions/classes to a greater extent. — Dependency Injection in JS/TS
If you think this post can help someone, please share it with them. Better yet, subscribe for free and receive fresh content in your inbox whenever it is published on the blog. I will never send more than one email a week.