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

What Is Software Engineering?

Software Engineering at Google · Ch 1 · What Is Software Engineering? · Titus Winters · 2020

中文 →

What is this chapter about?

The search box, maps and email on your phone run on code that, in some cases, has been alive for more than twenty years and is still edited by thousands of engineers every day. This chapter asks a deceptively simple question: what is the difference between "programming" and "software engineering"? The answer: time and people.

An analogy

A shopping list you write for yourself can be scrawled and thrown away. A cookbook that hundreds of kitchens will use for twenty years, through new pans, new ingredients and new tastes, is different: can others read it? Can it be revised? If one day grams must become ounces, can you make the change? The shopping list is programming. The twenty-year cookbook is software engineering.

A strange thing first

A supermarket never promised that the milk would always sit by the door. Yet after a few years, some regulars walk straight there with their eyes closed. The day the shelves move, they come up empty-handed. Software works the same way: once enough people use something, every little habit it has, even one nobody promised, will be relied on by someone. The author's colleague Hyrum turned this into a "law". That is why the hard part of old code is usually not writing it but changing it.

How it works, intuitively

What it gives you / how to choose

To decide which standard a piece of code deserves, ask: how long will it live, and how many people will change it? For a one-off script, just be fast; for a system maintained for years, pay extra effort so it can still be changed later. The honest cost: this approach is slower up front, and on a small team or a short project it may be pure overhead.

One line to remember

Programming makes code run today; software engineering keeps it changeable for many years, in many hands.

Want the precise meaning of "programming integrated over time", Hyrum's Law and the true story of hash ordering, how the Beyoncé Rule and the churn rule make upgrades scale, the six kinds of cost, and real numbers from Google's monorepo? → Switch to the deep read