Hair cuts and peekaboo

October 16, 2022
How often do you come across code that look completely superfluous? Like a towel to a toddler during a haircut.

This morning my sister-in-law gave me a hair cut in the kitchen, while Harvey, my nearly-two-year-old son watched with curiosity.

Then he noticed I had a towel draped over my shoulders, and it became a game of peek-a-boo.

Then he wanted to remove the towel from my shoulders.

As often happens when I watch him play and learn, I started thinking: What’s going through his mind?

He’s very aware that I’m getting a haircut. He’s watching with intensity as those clippers approach my head.

He’s also very aware that I’m wearing a towel… he thinks its a toy and he wants full control over it.

What he doesn’t appreciate is the connection between these two things: the haircut, and the towel, to help kee my clothes clean from hair clippings.

This reminded me of coding. (Nerdy, I know… a parenting moment, and I’m thinking about coding… whatever)

How often do we come across pieces of code that look completely superfluous? Like a towel to a toddler during a haircut.

Then maybe we remove that “superfluous” code, only to later realize the purpose it was serving.

Share this

Related Content

Today I intentionally copied a bug

Guessing what code is meant to do is hard work.

“Greenfield” doesn't exist in agile projects

I've worked on a number of greenfield projects, but there's a problem: A greenfield project is only greenfield for about a week.

I don't like your programming language of choice

Tool choice is often overrated. Use the best tool under the circumstances, even when it's not the best tool in theory.