Eric AndersoninThe StartupThe Overstated Importance of Code ConsistencyHow style guides and linters can be a detriment to your code and development velocity. Why you should configure them for just what is…Aug 13, 2020Aug 13, 2020
Eric AndersonFactoryBot TipsA few tips when creating factories with FactoryBot (formally FactoryGirl).Apr 1, 2019Apr 1, 2019
Eric AndersonRemoving the @ Hack in Rails ControllersA while back, I wrote an article that described a collection of non-conventional strategies that I use to make Rails controllers more…Jun 1, 201811Jun 1, 201811
Eric AndersonStriving Towards Maintainable ControllersControllers have always been an area I’ve never been happy with in Rails. Let’s look at a “recommended” controller based on the…Mar 21, 2017Mar 21, 2017
Eric AndersonThe SQL Alternative To Counter CachesThe counter cache feature has been in Rails since the early days. It is a strategy to efficiently display a count of related records for…Oct 3, 20169Oct 3, 20169
Eric AndersonRemember, It’s a TemplateHelpers (as well as their similar cousins decorators and presenters) are useful in Rails, but sometimes we can go a little overboard. It’s…Sep 27, 2016Sep 27, 2016
Eric Anderson“Function” objects are not a thingEmbracing the nouns in objectsJun 2, 20161Jun 2, 20161
Eric AndersonArguments for Included Modules in RubyWhen modules are included (or extended or prepended) into an class the traditional approach doesn’t allow arguments to be provided. Why…May 26, 20162May 26, 20162