You may remember to use the || operator with caution to set defaults. We'll see that && and other conditionals come...
TypeScript basically uses structural typing, which is conceptually quite similar to duck typing, but with static compile-time type checking...
In some projects we have issues with flaky tests. The best default is to fix them all. But in some...
I use the Gemini web chat interface quite extensively. One thing that is tedious is giving it all the context...
Knapsack allows you to rerun a specific job locally. This is helpful to run specs in the exactly same order...
If your rubocop run fails with a stack like rubocop-1.61.0/lib/rubocop/server/socket_reader.rb:36:in `ensure in read!': undefined method `string...
The :test adapter doesn't respect limits_concurrency configuration. Switch to :solid_queue adapter in your test to verify blocking...
Short reference on how to quickly debug the vanilla Rails job adapters. Queue Adapters by Environment Environment Adapter
Sometimes you have a maintenance script where you want to iterate over all ActiveRecord models. Rails provides this out of...
Finding changes When you're looking for a specific change in Git, there are multiple axes you can choose:
Mise is a tool that can manage your Ruby and Node.js versions. It replaces rbenv and nvm in that regard...
When you replace parts of the DOM with new HTML, using .innerHTML = newHtml is usually the simplest and fastest option...
Compatibility: Angular 20+ with Jasmine 5.x and Karma 6.x As a default Angular CLI auto-generates test bootstrap...
Full-text search can reach its limits in terms of flexibility and performance. In such cases, trigram indexes (pg_trgm...
When RSpec sets out to print any given object to the console, it will never print more than 200 characters...
The linked tool can be used to scan your CI/CD workflows for potential security issues and suboptimal defaults if they...
In Rails 8 the behavior of the rails db:migrate command has changed for fresh databases (see PR #52830).
GoodJob and ActiveJob rescue exceptions internally, preventing exception_notification from triggering. This can cause silent job failures.To get notified, subscribe...
prettier calls itself an opinionated code formatter. I recommend using it for your JavaScript and TypeScript code. prettier only concerns...
If you run a Rails app that is using Turbo, you might observe that your integration tests are unstable depending...
GitLab has a RubyMine plugin that enables you to review and process merge requests within RubyMine! Setup Open RubyMine settings...
The linked MDN article is quite informative of a neat feature supported by all major browsers: Unicode character class escape...
When RSpecs runs the first feature spec, you may see log output like this: Capybara starting Puma... * Version 6.5.0, codename...
ActiveRecord computes table names of model classes, and results are usually just like you'd expect. Adding a prefix for...