
An introduction to Barley, the fast model serializer
How I built and open-sourced Barley, a fast and simple model serializer gem for Rails, born from real-world performance needs and benchmarked against the best in the Ruby ecosystem.

How I built and open-sourced Barley, a fast and simple model serializer gem for Rails, born from real-world performance needs and benchmarked against the best in the Ruby ecosystem.

Simple rules for ordering Ruby method arguments — put optional arguments last, and switch to keyword arguments when you have more than one optional parameter.

Stop ignoring error messages and start reading them — it will make you a better developer and help you understand your language from the inside out.

A set of guidelines to write clean, readable code that you — and your future self — will thank you for.

Avoiding the callback hell in Rails by creating a simple method in the model to initialize associated records.

Unleash the full power of regular expressions by chaining conditions together.

When you need to import users into a new Rails app using Devise, you may want to skip sending confirmation emails. Here’s how to do it by overriding an instance method in the User model.