When you find similar groups of expect calls in your tests, you can improve readability by extracting the group into...

If you ever need to restore exact records from one database to another, Marshal might come in handy. Marshal.dump is...

While upgrading CarrierWave from version 0.11.x to 3.x, we encountered some very nasty fails. Below are the basic...

You don't want sensitive user data in your logs. Background Rails per default filters sensitive data like...

Both knapsack and parallel_tests have the option to split groups by historic execution time. The required logs for this...

Rails' Strong Parameters enable you to allow only specific values from request params to e.g. avoid mass assignment.

Rails offers several methods to manage three types of different cookies along with a session storage for cookies. These...

When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips

Code splitting is a feature of esbuild that can keep huge libraries out of the main bundle. How code splitting...

Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...

tl;dr Individual transform properties are great because they allow you to write more readable and maintainable CSS, especially when...

makandra dev
content-security-policy.com

tl;dr The strict-dynamic source list keyword allows you to simplify your CSP policy by favoring hashes and nonces...

makandra dev

Rails partials have a lot of "hidden" features and this card describes some non-obvious usages of Rails Partials.

makandra dev

In a Jasmine spec you want to spy on a function that is imported by the code under test. This...

sass >= 1.35.0 has the option quietDeps and silenceDeprecations to silence deprecation warnings from dependencies. quietDeps: No deprecation warnings for dependencies...

New versions of wkhtmltopdf dissallow file:// URLs by default. You can allow them by passing --enable-local-file-access.

Ruby includes many standard gems that are bundled into the Ruby installation. Here is an example for the gem strscan...

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...

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...