ruby My favourite Ruby on Rails engines Ruby on Rails Engines is one of the most powerful and underestimated features. Here are some of my favorite ones.
Rails Organizing External Services in Rails Rules I use at Product Hunt to deal and structure external services in Ruby.
GraphQL How Product Hunt Structures GraphQL Mutations At the time of this writing, our codebase and related projects have 222 mutations. Here the guide on structuring GraphQL mutations.
Rails Improve ActiveRecord Polymorphic Associations Polymorphic associations in ActiveRecord are very useful. A simple technique for explicitly listing which are the allowed classes.
ruby Dealing with N+1 in GraphQL (Part 2) How to deal with N+1 queries in GraphQL within Ruby on Rails project when Active Record's build in preload is not enough.
ruby Dealing with N+1 in GraphQL (Part 1) How to deal with N+1 queries in GraphQL within Ruby on Rails project using GraphQL::Batch gem.
ruby Introducing KittyEvents Super simple publish/subscribe pattern using ActiveJob. You setup your events and list the subscribers for them. When an event is triggered, KittyEvents will fanout the event to each of your subscribers.
Rails Rails 5 Features, I'm Excited About I'm more excited about the smaller new features in Rails 5, which would not change my life, but will make it a bit easier.
Rails Retrying ActiveJob One missing feature from ActiveJob is the ability to retry when a job fails. Here is how to implement it.
Rails Rails Anti-Pattern: Setting View Variables In Before Actions In a lot of Rails project I'm seeing view assignments from before actions. I don't like this pattern. Here is why.
open_source Introducing MiniForm Introducing my newest gem - MiniForm. It is group of helpers for dealing with form objects and nested forms.
Rails Dealing With Form Objects in Rails Tutorial about handling complicated nested forms with Ruby on Rails.