Why Our Code Smells
Brandon Keepers • Lyon, France • Talk

Date: August 22, 2012
Published: August 24, 2012
Announced: unknown

Odors are communication devices. They exist for a reason and are usually trying to tell us something.

Our code smells and it is trying to tell us what is wrong. Does a test case require a lot of setup? Maybe the code being tested is doing too much, or it is not isolated enough for the test? Does an object have an abundance of instance variables? Maybe it should be split into multiple objects? Is a view brittle? Maybe it is too tightly coupled to a model, or maybe the logic needs abstracted into an object that can be tested?

In this talk, I will walk through code from projects that I work on every day, looking for smells that indicate problems, understanding why it smells, what the smell is trying to tell us, and how to refactor it.

Brandon is a developer at GitHub. He spends most of his time crafting beautiful code for Gaug.es and SpeakerDeck.com. Brandon has created and maintains many open-source projects, and shares about his endeavors at opensoul.org.

Ruby Lugdunum Conference 2012

Explore all talks recorded at Ruby Lugdunum Conference 2012
+13