Event listeners are called in the order of their registration: button.addEventListener('click', () => console.log("I run first")) button.addEventListener('click', () => console.log("I...
This card describes two different setups that help restore data in case of a data corruption incident during a deployment...
The :test adapter doesn't respect limits_concurrency configuration. Switch to :solid_queue adapter in your test to verify blocking...
If you use the selenium-webdriver gem, it will sneakily phone home once every hour whenever you run a browser...
Most of our CI pipelines don't use the --retry flag for Cucumber and instead build their own retry via...
Short reference on how to quickly debug the vanilla Rails job adapters. Queue Adapters by Environment Environment Adapter
I recently had to update a few selective npm libraries in a project that uses pnpm to apply a CVE...
Sometimes you have a maintenance script where you want to iterate over all ActiveRecord models. Rails provides this out of...
When you query the browser for DOM elements, there are some footguns you should know about. Some lists are synchronized...
Finding changes When you're looking for a specific change in Git, there are multiple axes you can choose:
When you replace parts of the DOM with new HTML, using .innerHTML = newHtml is usually the simplest and fastest option...
Compatibility: Angular 20+ with Jasmine 5.x and Karma 6.x As a default Angular CLI auto-generates test bootstrap...
You want to prevent input to a form field, but all the solutions have side effects: The [readonly] attribute is...
Full-text search can reach its limits in terms of flexibility and performance. In such cases, trigram indexes (pg_trgm...
Quick reference for passing data from Rails to JavaScript via Unpoly compilers. Haml Attribute Syntax # Ising hash rockets and string...
Quick guide for frequently used compiler selector patterns of Unpoly. 1. BEM Component Pattern When: Reusable UI components with multiple...
Performing COUNT(*) on large tables is slow. Sometimes you don’t need the exact number once results exceed a certain...
When RSpec sets out to print any given object to the console, it will never print more than 200 characters...
The linked tool can be used to scan your CI/CD workflows for potential security issues and suboptimal defaults if they...
prettier calls itself an opinionated code formatter. I recommend using it for your JavaScript and TypeScript code. prettier only concerns...
Rails log files rotate automatically when they reach approx. 100MB: $ ls -lh log/ -rw-r--r-- 1 user group 55M...
If you run a Rails app that is using Turbo, you might observe that your integration tests are unstable depending...
Most of the time, when you are interested in any log output, you see the logs directly on your console...