
Deep modules and error handling

The Philosophy of Software Design – with John Ousterhout
Topic 7 of 15
Published Apr 9, 2025 · Clip 26:38–33:03 (6:24)
John explains deep modules: simple interface, lots of hidden functionality—leverage against complexity. On error handling, he argues more exceptions are not better; every exception imposes complexity on users, and slight design changes can eliminate whole classes of errors. But he warns students misinterpret this—the errors still exist if ignored—and compares defining errors away to using spice. The host shares Uber outage stories rooted in mishandled errors; John notes exception handling happens tactically and advises designers to think from the caller's standpoint and reduce exception variety.