By activating strict_loading you force developers to address n+1 queries by preloading all associations used in the index...
As a developer you may have many tools watching your project for changes: Your IDE, Webpack, Guard, etc. This is...
Here are a few common patterns that will probably lead to flaky specs. If you notice them in your specs...
tl;dr git checkout is the swiss army of git commands. If you prefer a semantically more meaningful command for...
In Chrome DevTools you can use getEventListeners(object) to get a list of registered event listeners on the specified object...
To ensure a consistent code style for JavaScript code, we use ESLint. The workflow is similar to integrating rubocop...
Building application assets with esbuild is the new way to do it, and it's great, especially in combination with...
You want to deploy new features but the latest commits are not ready for production? Then use git merge master...
Rails 6.1 has a "strict loading" mode that forces the developer to preload any association they plan to use. Associations...
If you want Sidekiq to be able to talk to Redis on staging and production servers, you need to add...
Matching the "space" character class For matching whitespaces in a regular expression, the most common and best-known shorthand expression...
When dealing with external data sources, you may have to deal with improperly encoded strings. While you should prefer deciding...
Generate a password htpasswd -Bn firstname.lastname This will ask you for a password and use bcrypt (-B, more secure) and...
We prefer to run our end-to-end tests with headless Chrome. While it's a very stable solution overall...
In Ruby (almost) everything is an Object. While this enables a lot of powerful features, this concept might be confusing...
Sometimes you accidentally generate entries in the bash history that you do not want to have there (e.g. commands with...
After a recent Ubuntu update I didn't see the main menu bar of the RubyMine IDE (File | Edit | View...
When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...
In interactive commands, Git allows the user to provide one-letter input with a single key without hitting enter (docs...
When writing some logs to a file, that don't use Ruby's logger utility, it is often useful to...
Nokogiri is great. It will even fix invalid HTML for you, like a browser would (e.g. move block elements out...
TL;DR PostgreSQL handles Rails 4+ text and string columns the same. Some libraries may still reflect on the column...
This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...
Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...