I recently stumbled over a problem that my feature tests broke in CI because of a mismatching chromedriver version.
View specs are a powerful tool to test several rendering paths by their cases instead of using a more costing...
Besides Plotting graphs in Ruby with Gruff, which comes handy for many uses cases, you sometimes might need configuration for...
For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...
The git doc states on the difference of these two commands: git-restore[1] is about restoring files in the...
In the linked page, Manuel Matuzović offers an FAQ regarding web components, and their accessibility in particular.
Rails offers several methods to manage three types of different cookies along with a session storage for cookies. These...
Note: You won't need this for single lines of text. In this case it is better to just use...
Git log offers useful options for filtering. This card provides a short overview. By message Only commits that include a...
Web forms can be made much more usable with a few HTML attributes. Short summary: type: Tells browsers about the...
Context and further resources Even though you can get 90% of debugging done with up to 5 basic byebug commands...
Haml 6 was a major rewrite with performance in mind. To achieve a performance improvement of 1.7x, some design...
Rails offers the fresh_when method to automatically compute an ETag from the given record, array of records or scope...
This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...
In the past we validate and set default values for boolean attributes in Rails and not the database itself.
Variable fonts are popular for two reasons: they expand design possibilities and improve website performance. While the former statement is...
tl;dr Since Rails 7+ you can use ComparisonValidator for validations like greater_than, less_than, etc. on dates, numerics...
You can use ETags to allow clients to use cached responses, if your application would send the same contents as...
Case studies and experiments demonstrating the impact of web performance optimization (WPO) on user experience and business metrics.
To allow HTTP 304 responses, Rails offers the fresh_when method for controllers. The most common way is to pass...
When working with feature branches, stale branches pile up over time. It's best to remove them right after merge...
When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:
It might sometimes be useful to check whether your Rails application accesses the file system unnecessarily, for example if your...
While verifying doubles in RSpec is a good default, it is limited in the amount of methods it actually is...