makandra dev
unpoly.com

Unpoly 3.11.0 is a big release, shipping many features and quality-of-life improvements requested by the community. Highlights include...

You can check the maximum client Redis database size in Sidekiq with this command. Sidekiq.redis { |redis| puts redis.info.fetch('maxmemory_human...

For long running scripts it is useful to show a indicator for the progress in the terminal. Alternatively you can...

Method delegation in Rails can help you to keep your code organized and avoid deep call chains (law of demeter...

To reverse lookup a fixture by its table name and id, use the following approach on ActiveRecord::FixtureSet: table = 'users...

evilmartians.com

Some key highlights and points from the linked article TestProf II: Factory therapy for your Ruby tests. The Problem with...

When Ruby objects are inspected in any modern IRB, some objects (like ActiveRecord instances) are rendered with neat colors and...

makandra dev

Capistrano 3 has a doctor task that will print information about Environment: Ruby, Rubygems and Bundler versions List of Capistrano...

makandra dev

YJIT is Ruby's default just-in-time compiler. It is considered production-ready since Ruby 3.2 (source).

masilotti.com

Slow test suites are a major pain point in projects, often due to RSpec and FactoryBot. Although minitest and fixtures...

While the main goal always is to prevent long-running queries in the first place, automatic timeouts can serve as...

I recently stumbled upon the Rails feature composed_of. One of our applications dealt with a lot of addresses and...

Recently I needed to benchmark an Active Record query for performance measurements. I wrote a small script that runs each...

It's possible to implement simple custom RuboCop cops with very little code. They work exactly the same like existing...

Sometimes we have to write code that behaves differently based on the version of a specific gem or the Ruby...

I recently stumbled over a quirk in the way Ruby handles local variables that I find somewhat dangerous. Consider:

makandra dev
github.com

I was recently asked to optimize the response time of a notoriously slow JSON API endpoint that was backed by...

makandra dev

While most Rails Apps are tied to at least one external REST API, machine-to-machine communication via GraphQL is...

This card shows an uncommon way to retrieve a file using selenium where JavaScript is used to return a binary...

Some rubygems come in platform-specific versions (i.e. "x86_64-linux") in addition to the usual "ruby" platform. This is...

Running gem update --system will install the latest version of RubyGems. However the latest version might not be compatible with...

You might know a few examples, where you configure some library via a block. One example is the Rails configuration...

This card is a short summary on different ways of assigning multiple attributes to an instance of a class.

What is makandra cards? We are makandra, a team of 60 web developers, DevOps and UI/UX experts from Augsburg, Germany...