Writing a Custom Cop for RuboCop
A quick example of a custom cop for RuboCop I wrote recently to enforce usage of a specific intializer for the Ruby Money gem.
Query Objects in Rails
A great pattern to prevent ActiveRecord code duplication and clean up cluttered models.
Using Select Instead of Pluck in ActiveRecord Queries
A helpful tip to improve your ActiveRecord queries by using select instead of pluck in certain situations.
Better ActiveRecord Queries with the Merge Method
A coworker of mine recently introduced me to ActiveRecord’s merge method, which has allowed me to really improve the modularity and clarity of my queries.
Work
- Company
- Sagewell Financial
- Role
- Senior Software Engineer
- Date
- Company
- Tinyhood
- Role
- Senior Software Engineer
- Date
- Company
- Cohub
- Role
- Software Engineer
- Date
- Company
- Tinyhood
- Role
- Software Engineer
- Date