Sam TurnerAll 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…Mar 27, 20221Mar 27, 20221
Sam TurnerVerify 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…Mar 6, 2022Mar 6, 2022
Sam TurnerAll 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…Jan 23, 2022Jan 23, 2022
Sam TurnerA 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…Apr 1, 2019Apr 1, 2019