The Abstraction

Share this post

Sitting Ducks

www.theabstraction.space

Sitting Ducks

Joel Drapper
Jun 20, 2022
4
Share this post

Sitting Ducks

www.theabstraction.space

A common refactoring in object-oriented programming is to take a complex method or set of methods and extract a new class from them. These classes — often referred to as “service objects” or “operations” — allow you to break a complex operation into small well-named components as private methods. And because classes can hold state in instance variables, you no longer need to pass state around through the use of method arguments.

Read →
  • New First
  • Chronological
© 2023 The Abstraction
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing