Rails 6.1 has a "strict loading" mode that forces the developer to preload any association they plan to use. Associations...
A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...
It is generally discouraged to load your JavaScript by a tag in the : The reason is that a tag will pause the DOM parser until the script has loaded and executed. This will delay the browser's first contentful paint. A much better default is to load your scripts with a tag: A deferred script has many...
This bookmarklet grabs a PivotalTracker story title, transforms it into a valid git branch name and automatically prepends your initials...
The attached compiler() function below applies JavaScript behavior to matching HTML elements as they enter the DOM. This works like...
The rubygems binary gem allows to extract a local gem with gem unpack GEMNAME. For more details see the official...
After switching a project from Sprockets to Webpack, I started observing a bug that was hard to debug: Our...
If your Webpack build is slow, you can use the Speed Measure Plugin for Webpack to figure out where time...
Sometimes you want to load code on demand. For instance, when a a large library is only used on a...
Webpack builds can take a long time, so we only want to compile when needed. This card shows what will...
When your Rails application server raises error, Capybara will fail your test when it clears the session after the last...
json is part of the standard library of Ruby and deals with JSON, obviously. As you know, JSON is the...
5.4.0 2021-02-01 Compatible changes Add geordi branch command that checks out a feature branch based on a story...
ZSH is an alternative command line shell that includes some features like spelling correction, cd automation, better theme, and plugin...
CarrierWave comes with a set of default configuration options which make sense in most cases. However, you should review these...
Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...
In case Ruby does not detected the expected encoding of a file automatically you can specify the known encoding manually...
Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state...
When loading a database dump created with pg_dump into your database, you might run into an error like
There is a common view that extracting text from a PDF document should not be too difficult. After all, the...
This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the...
Rails 5.2+ supports "verbose query logs" where it shows the source of a query in the application log.
If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...
CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...