When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips
Using querySelector or querySelectorAll in JavaScript, you can easily find descendants of a node that match a given selector.
It most cases it's not necessary to add a version constraint next to your packages in the package.json. Since...
Code splitting is a feature of esbuild that can keep huge libraries out of the main bundle. How code splitting...
With this Ruby script you can print all values in a Redis database to your console (derived from this bash...
Within Capybara you most certainly use the #check- and #uncheck-method to (un)check checkboxes. But there's one problem...
When you allow file uploads in your app, a user might upload content that hurts other users. Our primary concern...
Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...
Haml 6 was a major rewrite with performance in mind. To achieve a performance improvement of 1.7x, some design...
Capybara has a variety of finder methods like find_button to help you look up DOM elements. There are also...
When you use native smooth scrolling there is no built-in method to detect the end of the scrolling animation...
This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...
HTTP header values must only contain low-ASCII (7-bit) characters for safe transport. From RFC 7230: Historically, HTTP has...
Since Rails 7 you are able to encrypt database information with Active Record. Using Active Record Encryption will store an...
Let's assume that we have a model Movie that registers a callback function when a new instance of Movie...
TLDR if you define a equality method for a class you must also implement def hash. Ruby has a lot...
Usually, design development starts with drafts, sketches and prototypes. These are reviewed, refined and iterated until the final design is...
To read the current breakpoint tier in JavaScript, employ this CSS: :root { --current-breakpoint-tier: xs; @media (min-width: $screen...
In a Jasmine spec you want to spy on a function that is imported by the code under test. This...
By default subscript ( ) and superscript ( ) tags are styled with vertical-align: sub, respectively vertical-align: super by most browsers.
Usually, Unpoly compiler destructors are returned from the compiler function. However, when using async compiler functions, you can not register...
The cards editor has a feature "Cite other card" to create links to other cards in the same deck as...
Jasmine specs for the frontend often need some DOM elements to work with. Because creating them is such a common...
tl;dr The Chrome DevTools are a neat collection of tools for the daily work as a web developer. If...