How to rollback a specific previous ActiveRecord migrationYou may be familiar with this scenario:Jul 12Jul 12
Why you should (almost) never rename your Rails database migrationsHow many times have you gone to merge your PR only to find you have a db/schema.rb conflict?Oct 5, 20201Oct 5, 20201
Sitting comfortably? Then I’ll BegitI hope we all agree that the primary objective of clean code is to communicate the intent of our code to other humans and not to the…Sep 25, 2020Sep 25, 2020
Creating Active Record scopes using Arel and DISTINCT ONActive Record scopes are pretty powerful. However, there are some operations which — on the surface — seem like they should be fairly…Mar 27, 20191Mar 27, 20191
London tech culture; seaside chicI recently wrote this post asking if Folkestone might be poised to become a new tech hub. Because, I’d really like to build a development…Oct 13, 2017Oct 13, 2017
Is Folkestone poised to become a new tech hub?If you are a growing business looking to scale your engineering team in London, you’re up against some pretty strong competition. What can…Sep 27, 2017Sep 27, 2017
Rationalizing AmericanismsBe honest, we are all slightly pedantic aren’t we? It’s part of being a good programmer. We obsess over spaces vs tabs; curly brackets…Oct 1, 2016Oct 1, 2016
Avoid abusing service objectsAt Makers Academy we like service objects. They are a handy way to refactor code out of fat models and fat controllers and into…Dec 2, 2015Dec 2, 2015
Musings on Service ObjectsRecently I’ve been considering Service Objects, in particular how they might be named and whether they should have class methods or not.Sep 3, 20151Sep 3, 20151