Sam Turner·Mar 27, 2022All About Service Objects: Part 2 — Method Object PatternPart 1 of this series outlined the benefits of service objects in Rails controllers. This post describes a cousin of service objects…A response icon1A response icon1
Sam Turner·Mar 6, 2022Verify Your Partial Doubles in RSpecWhen writing isolated unit tests, we often stub methods on classes which are not under test. Take the following snippet of code for…
Sam Turner·Jan 23, 2022All About Service Objects: Part 1 - Rails ControllersA service object is simply a Ruby object that performs a single action. It encapsulates some business logic, and they are often found in…
Sam Turner·Apr 1, 2019A Nontechnical Explanation of Technical DebtYou are a product manager at your morning stand-up meeting waiting for one of your developers to give you an estimate on how long a new…