Capybara allows you to filter elements that are focused. page.find(:fillable_field, focused: true) # Filtering only fillable inputs for performance...
In CI test runs I noticed that string sorting order changed after switching from a debian-based PostgreSQL docker image...
Git log offers useful options for filtering. This card provides a short overview. By message Only commits that include a...
Sometimes you'll find yourself with a set of tasks that require similar code for different models. For example, if...
When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips
alias_method makes a copy of a method. This works fine until the same method is overridden using prepend. If...
Splitting up commits makes the process of reviewing often easier, since you can create several merge requests or review every...
It most cases it's not necessary to add a version constraint next to your packages in the package.json. Since...
It most cases it's not necessary to add a version constraint next to your gems in the Gemfile. Since...
If you have a fully functional CI pipeline but no CD, you might find yourself frequently waiting for CI (with...
Git commands like diff use the less binary for their output representation. I often find myself searching for strings like...
Code splitting is a feature of esbuild that can keep huge libraries out of the main bundle. How code splitting...
I recently noticed that better_errors allows you to to open files from within your favorite editor. However it was...
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...
tl;dr asdf allows you to manage multiple runtime versions with a single CLI tool and is backwards compatible by...
Capybara has a variety of finder methods like find_button to help you look up DOM elements. There are also...
We will achieve this by creating a block accepting method to optionally create and then lock a .lock File of...
If you use a newer SSH key generated with the ED25519 algorithm instead of RSA (see Create a new SSH...
This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...
Not all email clients support external images in all situations, e.g. an image within a link. In some cases, a...
Carrierwave's BaseUploader can have some validations that you can use by overriding a certain method, which's expected name...
Sometimes I ran across a GitHub merge request of a gem where it was not completely obvious in which version...
In Rails 5+ you can access a helper from a controller using the helpers method: # Inside a controller action