In the pilot episode of my new “Cursed Code” series, I dive into the depths of Ruby code submissions to refactor and discuss best practices. This test-run episode tackles the age-old dilemma of naming abstract base classes. The Cursed Code The code in question features an abstract base class aptly...

Read more...

Recently, I’ve noticed that more and more people seem to be using JSONB columns with PostgreSQL in Rails apps—specifically to create a flexible place to define model attributes in a way that’s cheap and easily modifiable. A sort of pseudo-attribute, created on the fly, without having to create DB migrations...

Read more...

This is the recording of a talk I have recently to my work colleagues.

Read more...

One of the problems I tend to notice a lot when working on a mature Rails project is that there are train-wrecks everywhere!

Read more...

SecureRandom is a great library for creating cryptographically secure random values in Ruby, and you should definitely use it in your application code where appropriate.

Read more...