de en es fr nl pl pt sv tr zh

spaghetti

Spaghetti Models Part 3: Safely Remove Methods

Todd Sdeano

Note: This is one part of my journey to tame a spaghetti model or god object. Start with Post 1: Unraveling a Spaghetti Model to see how I chose to tackle this problem. Your spaghetti model has been a dumping ground of methods and associations for years. In our case, it’s the company model. We...

Unraveling a Spaghetti Model

Todd Sdeano

In many established Ruby on Rails applications, there are often a couple of classes that become entangled with the rest of the code base. These early models start small and simple, possibly present for the first commit, but over time, the rest of the code base becomes entangled with them. Some...

Cleaning House - Removing dead columns

Todd Sdeano

On January 10, 2023, our code base turns 11 years old. For a repo with this much history, we’d expect for the business needs and features to have evolved over time. Surely in the quest to ship new features, our past selves might have forgotten to remove all the dead code. While examining our...