Menu

A Philosophy of Software Design Summary: Deep Modules Beat Small Ones
📰

A Philosophy of Software Design Summary: Deep Modules Beat Small Ones

#devcommunity#dev#code#book#design
Reading 0:00
15s threshold

Picture a codebase where adding one field means editing seven files, and nobody is sure which seven. No single commit made it that way. It got there one reasonable shortcut at a time.

That slow slide is what this book is about.

Book: A Philosophy of Software Design, John Ousterhout (2nd edition, 2021). Ousterhout is a Stanford professor who created the Tcl language, and the book grew out of a software design course he teaches there.

The book in one sentence

Complexity is the enemy, and the best weapon against it is modules that hide a lot behind a simple interface.

Everything else in the book either explains where complexity comes from or gives you a way to hide it.

Idea 1: Complexity is anything that makes code hard to change

Ousterhout defines complexity by its effect: anything that makes a system hard to understand or modify.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.