Mar
16
(2005)
Code Smells
Filed under: Uncategorized. Tags: principles.
I’m a big fan of the concept of “code smells” - the notion that you can subconsciously evaluate the elegance/correctness of a code by how it “smells” to you. Similar to “beauty” in mathematics or physics, I suppose.
Sean Corfield, at An Architect’s View, just posted an overview of Josh Kerievsky’s session at SD West.
For example, when touring the Pachyderm codebase, you can tell who wrote it by the smell. King’s code smells like a tropical beach. Clean. Breezy. A place you want to spend the day hanging out.
My code, on the other hand, tends more toward a downtown back alley - functional, not the cleanest place to be, not someplace you want to spend a lot of time, and often smelling oddly of fish.
Comments
One Response to “Code Smells”
Leave a Reply

I’m afraid to ask what my code smells like…