John Ousterhout Google Talk
- 25Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is the most important concept in computer science according to John Ousterhout?
Problem decomposition: breaking a complicated problem into pieces that can be built relatively independently.
Or swipe the card
25 cards
What is the most important concept in computer science according to John Ousterhout?
Problem decomposition: breaking a complicated problem into pieces that can be built relatively independently.
Define a 'deep class' in software design.
A class with a simple interface (low cost) that provides a large amount of functionality (high benefit), i.e., a good abstraction.
What is a 'shallow class'?
A class with little functionality or a complicated interface, providing little leverage and often a net negative in complexity.
What is 'classitis'?
The mistaken belief that more classes are better, leading to many small, shallow classes that increase complexity.
Give an example of a deep interface.
The Unix file I/O interface: five functions (open, read, write, close, lseek) hiding hundreds of thousands of lines of code for disk management, caching, and device drivers.
What key insight does the book 'Talent Is Overrated' offer for becoming an expert?
The main differentiator between top and average performers is the amount of deliberate practice, not innate talent.
What is the principle of 'defining errors out of existence'?
Redefining semantics so that exceptional conditions become normal behavior, eliminating the need for exception handling in common cases.
How should Tcl's 'unset' command have been designed to avoid an exception?
It should make a variable not exist; if it already doesn't exist, do nothing (no error).
How does Unix handle file deletion while the file is open to avoid errors?
Unix removes the directory entry immediately but keeps the file content until the last open instance closes, so no error occurs.
How does Ousterhout argue Java's substring method should behave?
It should return the overlap between the specified indices and the available string (e.g., empty string if out of range), not throw an exception.
When is it appropriate to throw an exception rather than redefine semantics?
When a module fundamentally cannot carry out its contract (e.g., an I/O error where the operation fails).
What is the tactical approach to programming?
The primary goal is to get something working quickly, often taking shortcuts; complexity accumulates from many small compromises.
What is the strategic approach to programming?
The primary goal is a great design; investing extra time now to enable faster future development.
What is a 'tactical tornado'?
A programmer who produces large amounts of shoddy code that mostly works, leaving a trail of complexity; often mistakenly seen as a hero.
Why is software complexity difficult to fix once it accumulates?
Complexity results from hundreds of small mistakes by many people over time; there is no single fix, making cleanup overwhelming.
How much extra time should a team invest in design improvement, and what is the expected payback period?
About 10-20% extra time initially, with payback in 6-12 months.
What is the ideal outcome when modifying existing code?
To end up with the design you would have had if you built the system from scratch with current knowledge; at least break even by improving something.
What is Hyrum's Law?
With enough users of an API, all observable behaviors (even unintended) will be depended upon by someone.
How should layers be designed to balance abstraction and performance?
Use fewer, meatier layers rather than many skinny layers; define layers with performance in mind.
What hiring philosophy does Ousterhout recommend?
Hire for slope (learning ability) rather than y-intercept (past experience).
Why is a strong design culture important for a company?
It attracts top programmers (10x productivity), giving a competitive advantage over companies with poor design culture.
How does the course CS 190 teach software design?
Through iterative cycles: students build a system, receive code reviews (from peers and instructor), revise, and repeat—similar to learning writing.
What should design reviews focus on beyond bugs and style?
Design issues such as abstraction depth, interface complexity, and adherence to principles like deep classes.
What is Ousterhout's advice for making design improvements in existing code?
Take small steps; look for something to improve each time you make changes; don't take the minimal change approach.
How can a team combat management pressure to prioritize features over design?
Have respected engineers explain the long-term benefits of design investment; aim for explicit company commitment to invest ~10% of resources in design.

Ask anything
We've read this whole study set, so questions about it get the best answers.