Ruby

Browse all articles about Ruby

All articles CSS Javascript Ruby on Rails Ruby

Write clean Object-Oriented code by extracting value objects in Rails

02 Nov 2021
6 minutes read

As Ruby on Rails developers, we tend to add too much code in the same ActiveRecord model. Very often, this is because we fail to identify new objects. This article presents a concrete tool that helps keep our ActiveRecord models sizes under control thanks to the serialize method.

Ruby Ruby on Rails

Rebuilding FactoryBot in 150 lines of code

19 Jun 2021
20 minutes read

FactoryBot is a gem that enables you to create fake data for your tests. If you work with Ruby on Rails, there are good chances that you worked with the gem on a few projects.

Ruby Ruby on Rails
Powered by Jekyll
Hotrails Twitter Github