Split your spec_helper.rb
file into a
minimal spec_helper.rb
file and a rails_helper.rb
file
to load only the necessary dependencies in a spec.
This is now the default in Rails.
Calculations across objects are ripe for using a map and an inject but frequently, with ActiveRecord, the solution is more elegant and faster if we can have SQL do the work instead.
How moving some data out of the database and into your codebase
as well-named constants can decouple your code and improve performance.
Step-by-step instructions for learning Test-Driven Development (TDD) in Ruby.
There’s nothing to fear!
It’s fun.
Try out enums, a new data structure macro in Rails.
Use microservices to compose and analyse light-weight declarative data pipelines.
Write less form-related code in your Capybara tests with
our newly open-sourced library, Formulaic.
Use composition to build more complex SQL queries in Ruby
using ActiveRelation’s API.
Before adding database indexes, eager loading, and caches,
spend a few minutes at the whiteboard with your team to rethink
the high-level requirements for your JSON API.
An in-depth look at HTTP requests and how Ajax works in Rails.