Book Deep-Read · Software Engineering at Google · Chapter 10

Documentation

Software Engineering at Google · Ch 10 · Documentation · Tom Manshreck · 2020

中文 →

What is this chapter about?

Behind every app on your phone and every website you visit, engineers write "instruction manuals" for each other: how this feature is used, what that button actually does, where a new hire should start reading on day one. This chapter is about how Google keeps those manuals accurate, current and easy to find.

A strange thing first

Nearly every engineer complains that the docs are bad, and nearly every engineer avoids writing them. It isn't laziness: the benefits of writing docs mostly land on other people and the future, while all the hassle lands on you, today.

Why the old world was hard

Early on, Google kept its docs on an internal wiki that anyone could edit. The result: several versions of the same story and nobody sure which was right; pages abandoned when their author changed teams; readers who spotted a mistake with nobody to tell. Docs and code lived in two different places, so whenever the code changed, the docs quietly turned into lies.

How it works, intuitively

What it buys / how to choose

What should your team do? Move the handful of most-used docs next to the code, update them in the same change and have a colleague look at both; boldly delete the ones nobody uses. The honest cost: every change takes a little longer, and without dedicated writers, the quality of the prose depends entirely on the engineers.

One line to remember

Docs are code: same home, same review, an owner, and an expiry date.

Want the seven ways docs are like code, Google's move off the wiki, the two kinds of readers, five doc types, three kinds of review and the "complete / accurate / clear" pick-two? → Switch to the deep read