The goal comes before the rules

The games in our neighborhood started out as batting practice. By the time we were playing to win, the rules had to change, or nobody would have had any fun.

It started as batting practice

We played a lot of games in our neighborhood, mostly sports. I was the oldest of three. My sister is two years younger than me, and my brother is five years younger. The neighbor kids were generally somewhere in between.

When we were little, the games weren't really competitive. They were instructional. We'd pitch to each other so whoever was batting could practice hitting. The point was to get better, and the rules were built for that.

Then it got competitive

As we got older, we started playing on competitive teams, and that came home with us. The games in the yard turned into real games, with a winner and a loser.

That's where the old rules stopped working. Five years is a big gap when you're a kid. If we'd all played by the same rules, I'd have been bored, and my brother and sister wouldn't have had any fun at all.

So we adjusted the rules to meet people where they were, and to make everyone part of the game.

Different fences for different hitters

In wiffle ball, my brother and sister got a home run for hitting it over the fence. I had to hit it over the neighbors' yard. If mine landed inside their yard, that was an out.

Football took more work. We'd end up with something like four against two: my brother and me against the other four kids. With teams that lopsided, there was an obvious way to break the game. Everyone would go deep to opposite edges, and the quarterback would just take off running.

So we added a rule. I couldn't run as quarterback unless I was rushed, and their quarterback had the same rule. Otherwise there was no way to actually play.

Mostly, the rules made things harder for me and easier for the younger kids.

Agreed before the first pitch

Everyone agreed to the rules before we started. When something wasn't working and we had to change a rule mid-game, people understood why, because everyone knew what we were going for: a game close enough to be fun.

I'm sure there were complaints. Nothing significant. The games were more fun because of it.

Where code comes in

Looking back, the rules were never the point. They were a system built for a goal. When the goal was learning to hit, the rules were about practice. When the goal became a competitive game, the rules had to change with it. The old rules weren't wrong. They just stopped fitting what we were trying to do.

Software works the same way. Requirements, processes and the code itself are rules too, written for a goal that was true at the time. Then the business grows, the people using it change, and what made sense stops making sense. Code that can't evolve with the goal ends up like pitching batting practice to a kid who's ready to play a real game.

That's why I try to start with the goal. What are we actually trying to do, and do the rules we have still serve it?

What I'm still not sure about is how to tell when it's time. In the yard, we knew because the game stopped being fun. In software, the signs are quieter, and it's easy to keep following rules long after anyone remembers why they exist.