developer.mozilla.org

Here is a workaround for when you want to use text-wrap: balance but must also render nicely for browsers...

PostgreSQL can cosplay as a full-text search engine. It doesn't have the features or fidelity of ElasticSearch or...

The key to unlocking the full potential of LLMs in coding lies in crafting precise prompts. The main challenge is...

When debugging slow SQL queries, it’s helpful to understand the database engine's query plan. Whenever you execute a...

evilmartians.com

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

docs.aws.amazon.com

The general purpose T instance types are a good starting point. But depending on the CPU utilization of your workload...

masilotti.com

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

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

makandra dev
github.com

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

chrisboakes.com

Debouncing a method call delays its execution until after a specified time has passed. If it's called again before...

We are using assignable_values for managing enum values in Rails. Nevertheless Rails is adding more support for enum attributes...

Debugging performance issues in your Rails app can be a tough challenge. To get more detailed insights consider using the...

I recently noticed a new kind of flaky tests on the slow free tier GitHub Action runners: Integration tests were...

edgeapi.rubyonrails.org

The linked article suggests an interesting way to speed up tests of Rails + Postgres apps: PostgreSQL allows the creation of...

Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...

makandra dev

Getting CSS (and JS) live reloading to work in a esbuild / Rails project is a bit of a hassle, but...

Creating Nagios Config with puppet Let's have a look at the classic way of managing Nagios configuration with exported...

TLDR Using .includes or .eager_load with 1-n associations is dangerous. Always use .preload instead. Consider the following ActiveRecord...

Chromedriver (or selenium-webdriver?) will not reliably scroll elements into view before clicking them, and actually not click the element...

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

Capybara allows you to filter elements that are focused. page.find(:fillable_field, focused: true) # Filtering only fillable inputs for performance...

Note: You won't need this for single lines of text. In this case it is better to just use...

Sometimes you'll find yourself with a set of tasks that require similar code for different models. For example, if...

So you have a heading that is just barely wider than the container it should fit into, and it wraps...