The Rules , as I’ve laid them out in this book, distill the lessons we’ve learned at Sucker Punch over the quarter-century of its existence. They’re specific to our experience. They reflect the things that we think are important—our programming culture. And that programming culture reflects the specific constraints and characteristics of creating the sorts of video games that Sucker Punch makes.

You’ve read a lot of Rules at this point. I’d guess that you immediately saw how some of the Rules apply to the work you do, while others feel more loosely connected to your experience. That’s not a surprise! If the programming work you do is radically different from the work we do, then some of our Rules may not make sense for you.

So what makes writing video games like ours different—and how does that affect the Rules?

  • First of all, our projects are long. Our last game, Ghost of Tsushima , took about six years to create. And we weren’t starting from scratch—most of the code in Ghost is an evolution (or just a direct copy) of code that ran in earlier Sucker Punch games. We place a premium on long-term code quality because we have to—the code we write today has a good chance of still running ten years from now.

  • The coding team is big, with 30-odd full-time coders currently on staff. Depending on your own situation, that may seem tiny or huge. Personally, I’d define a “small” programming team as one where one person can know all the details of all the code. By that standard, Sucker Punch hasn’t been small for a long time. At this point, nobody knows all the details of the codebase, and all of us have to sort things out in unfamiliar code. If our code isn’t easy to read and understand, we’ll be in deep trouble.

  • Performance is important for video games, much more so than for most code. There are websites that measure our performance to the millisecond! But that doesn’t mean all of our code needs to run fast. We’re like any project—our performance is determined by a small subset of our code. Some of our code needs to run quickly, but most of our code needs to be created quickly.

  • We release our games infrequently. That’s not true for all games—whatever games you’re playing on your mobile phone are likely updated all the time—but it is for us. That makes it easier to sign up for big changes to the code. It also means we face less of a constant quality burden—it’s important that our code keeps running reliably and correctly, because otherwise the 80% of Sucker Punch that isn’t on the coding team is going to be really grumpy, but the changes we make aren’t showing up in the customer experience until long after we check them in. We can tolerate a few temporary bugs in the code if it helps us create the game more quickly.

  • Every game for us is a fresh sheet of paper. While we build on top of the work we’d done for our last game, we’re not locked into it. We have no backward compatibility or continuity issues, and that makes it easier to for us to make major changes.

  • Our approach to game development is iterative. Our successes come from trying lots of new ideas to see which one works, not from designing a game first on paper and then building it. Ideas we try that sort of work are tweaked and experimented with; ideas that don’t work are immediately deleted. We prioritize creating and iterating on new code quickly…while still remembering that the code that does survive is likely to be around forever. That’s a tough combination.

These characteristics have an obvious effect on the Rules. For example, the fact that we release games infrequently has a huge impact on how we approach big changes to the code—if we had a weekly release schedule, we’d need a very different approach.

Use Your Best Judgment

The Rules can send you in contradictory directions, too—maybe your team’s conventions expect get and set functions to access an object’s protected state, but that means writing a set function you know is never called. That’s a conflict between following team conventions ( Rule 12 ) and deleting code that isn’t called ( Rule 8 ). Use your best judgment in cases like this—I’d follow team conventions if the set function is simple, but that’s just me.

You’ll also need to use your best judgment to decide which Rules apply to your own work. Some of our Rules might be a poor fit if the characteristics of the work you do differ enough from our projects at Sucker Punch. If that’s the case, then don’t follow the Rule—this isn’t a dogma, it’s just a set of useful rules.

But…there’s a chance that a Rule is true for you even if it’s hard to accept. I accept plenty of things now that I would have rejected ten or fifteen years ago. Take Rule 10, “Localize Complexity” . In the early years of Sucker Punch, I designed and built a lot of systems out of tangles of interacting objects. It took a long time—and a lot of failed architectures—to realize that my mistake was fundamental. Rule 10 grew out of those failures, and out of our more recent successes after localizing complexity.

Discuss Amongst Yourselves

This book was never intended to be a complete set of Rules, just a useful one. Use these Rules as a starting line, not a finish line. Develop your own set of Rules.

Obviously that will work best if you’re on the same page with the rest of your team! Everyone on the team choosing their own set of Rules is a recipe for chaos and strife. That’s probably not your goal.

Here’s an idea—start a book club. Everyone on the team reads a Rule or two, then you all get together to discuss how the Rules you’ve just read apply to your own projects. Figure out how you’d amend the Rule to better match the work you do, if it isn’t a good fit. Or decide to discard it entirely, if you all think that makes sense!

If you’re like most technical teams, you don’t spend a lot of time talking about coding philosophy. And when you do, it’s probably in the context of some particular technical issue you need to sort out, which inevitably leads to the technical discussion and philosophical one getting all tangled up. That’s not a recipe for progress. Better to separate the two discussions; you’re more likely to end up in a happy place that way.

You’ll be much more effective as a team if you’ve aligned your ideas of how to write code, and the quickest way to get there is to talk about those ideas. The Rules can be a good starting point for that sort of discussion. They can provide some structure to your discussion, a framework to come to some consensus about how to write code. And that’s worthwhile—investing in developing a shared coding philosophy will pay off many times over .

Signing Off

So that’s it! No more Rules!

This book has been fun to write; I hope it’s been fun to read.

If you’ve got reactions or comments you’d like to share, see The Rules of Programming website for pointers. I promise your input won’t be piped straight to dev/null. The website also points you at the source code examples used in the book.