While verifying doubles in RSpec is a good default, it is limited in the amount of methods it actually is...
Due to the way we setup Jasmine tests in our projects, you may run into various errors when Jasmine boots...
This are the steps I needed to do to add esbuild to an application that used the vanilla rails asset...
TL;DR When using Cache-Control on a Rails application, make sure the Vary: Accept header is set.
The Interactive Advertising Bureau (IAB) is a European marketing association which has introduced a standard how advertising can be served...
Jasmine is a great way to unit test your JavaScript components without writing an expensive end-to-end test for...
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...