Keep It Simple Stupid (KISS)

Build the simplest design that meets the real requirements, and add a moving part only when a measured problem asks for it.

Overview

KISS stands for Keep It Simple, Stupid. The blunt name carries one instruction: prefer the design with the fewest parts that still does the job. Every class, layer, pattern, service and configuration option is a thing someone must read, test, deploy and debug. A part that solves no present problem is pure cost.

Simple does not mean small or naive. A design can be simple and still handle a hard problem, because the difficulty comes from the problem, not from the design. Fred Brooks made this split in No Silver Bullet (1986): essential complexity is inherent in what the software must do; accidental complexity comes from how we chose to build it. KISS is the discipline of keeping the accidental part near zero.

Essential versus accidental

The two kinds differ in where they come from and in whether you can remove them. Essential complexity comes from the problem itself: the rules, the data, the relationships. You cannot remove it; you can only model it clearly. Tax law has many cases, and a scheduler must handle conflicts, whatever you build. Accidental complexity comes from our choices: tools, layers, patterns, indirection. You can remove it, and that is what KISS targets. A factory for a class with one implementation, or five services where one would do, are typical examples.

So a design is built from two streams of parts. The problem's own rules and data give the essential parts, which you keep and model clearly. Our tools, patterns and habits give the accidental parts, and you question every one. KISS keeps the design close to the essential problem: each accidental part must earn its place with a real, present need.

Interview questions

  • How do you balance KISS with the need to extend the design later?
  • What are the signs that a design is more complex than it needs to be?
  • How does KISS apply in a coding interview?
  • Show a design pattern used where it was not needed, and the simpler version.
  • What is the relationship between KISS and technical debt?

Sign up free to read the full topic

More Low-Level Design topics

Start free on Cariara · Coding problems · System design studio