tl;dr The :is() pseudo selector - specificity of its most specific argument - matches against a comma-separated list of selectors...
tl;dr The :where() pseudo selector - zero specificity - matches against a comma-separated list of selectors. Example Compound selectors like...
When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:
These are the results of the "personal tech stack survey". I've included only the most popular mentions, maybe it...
This should be fixed in the latest LTS-branches of our mysql2 fork, 0.2.x-lts and 0.3.x-lts...
tl;dr Since Rails 6.1+ you can use .compact_blank or .compact_blank! to remove blank values from collections (e.g...
Somewhat regularly, you will need to filter a list down to some items and then map them to another value...
It might sometimes be useful to check whether your Rails application accesses the file system unnecessarily, for example if your...
Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...
Code quality can be measured in four levels: (Working code) Reliable code (minimum) Readable code (ok for short-lived code...
When you need information about a gem (like version(s) or install path(s)), you can use the gem binary...
Due to the way we setup Jasmine tests in our projects, you may run into various errors when Jasmine boots...
Sometimes you will need an input field which wraps content and grows in height as soon as content gets longer...
To ensure a consistent code style for JavaScript code, we use ESLint. The workflow is similar to integrating rubocop...
This are the steps I needed to do to add esbuild to an application that used the vanilla rails asset...
Building application assets with esbuild is the new way to do it, and it's great, especially in combination with...
Jasmine has spyOnProperty(), but it only works if the property is implemented using getter and setter functions. This is a...
A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...
If you want Sidekiq to be able to talk to Redis on staging and production servers, you need to add...
This RailsCast demonstrated a very convenient method to activate VCR for a spec by simply tagging it with :vcr.
RSpec is smart when using the include-matcher in combination with .not_to. One could assume that .not_to include...
Event delegation is a pattern where a container element has a single event listener that handles events for all descendants...
The tree command will show you the contents of a directory and all its sub directories as a tree:
Rails has the handy controller method send_file which lets us download files easily. We can decide whether the file...