Why Rails has multiple schema formats When you run migrations, Rails will write your current database schema into db/schema.rb. This...
ActiveStorage does not provide any built-in way of implementing authentication for the available DirectUpload endpoint in Rails. When using...
SVG files often contain redundant information, like editor metadata or hidden elements. When esbuild handles your static assets, you can...
PostgreSQL can cosplay as a full-text search engine. It doesn't have the features or fidelity of ElasticSearch or...
$ cat ~/.config/mimeapps.list # open Archives with FileRoller and not extract them immediately, wich is the new behaviour when clicking archives in...
In development, we store files using ActiveStorage's disk service. This means that stored files are served by your Rails...
Zeitwerk is the new autoloader of Rails. It is mandatory starting with Rails 7.0. Sometimes, a model needs to know...
Slow test suites are a major pain point in projects, often due to RSpec and FactoryBot. Although minitest and fixtures...
I recently stumbled upon the Rails feature composed_of. One of our applications dealt with a lot of addresses and...
esbuild comes with a minifier that is good enough for most cases. If you're looking to squeeze out as...
I was recently asked to optimize the response time of a notoriously slow JSON API endpoint that was backed by...
This cards describes an example with a Github Client on how to keep your Rails application more maintainable by extracting...
As we're switching from PT to Linear, I've updated the existing bash script to work for commits that...
...HTML elements can automatically start playing when the autoplay attribute is set on them. Except for when they can not...
Debugging performance issues in your Rails app can be a tough challenge. To get more detailed insights consider using the...
I recently built a screen with a very high and wide table in the center. This posed some challenges:
Today I stumbled across a pretty harmless-looking query in our application which turned out to be pretty harmful and...
All browsers implement an event named beforeunload. It is fired when the active window is closed and can be used...
There are a few tools to combat the dreaded n+1 queries. The bullet gem notifies you of missing eager...
Ruby methods which load from a Yaml file, like YAML.safe_load or YAML.safe_load_file, support passing freeze: true to...
Here are some hints on best practices to maintain your tasks in larger projects. Rake Tasks vs. Scripts
RubyMine has a collaboration feature called "Code With Me". Using it, you can invite someone into your local editor to...
Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...
In the Gitlab settings the flag Auto-cancel redundant pipelines is enabled by default. This auto-cancels jobs that have...