John Ousterhout Google Talk
- 46Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
46 questions
- 1According to John Ousterhout, the most important concept in all of computer science is_____.
Hint
Think about how we break down complex problems into manageable pieces.
Answer
problem decomposition
- 2Software design is still basically a_____art.
Hint
Opposite of a science with clear rules.
Answer
black
- 3The one idea that threads through every aspect of computer science, including AI, systems, and theory, is_____.
Hint
Don Knuth said 'layers of abstraction,' but Ousterhout counters with this.
Answer
problem decomposition
- 4The idea that some programmers are way more productive than others is known as the_____programmer.
Hint
A term coined at Google.
Answer
10x
- 5The notion that classes should be deep is a way of thinking about the idea of_____hiding.
Hint
David Parnas first published on this in the early 1970s.
Answer
information
- 6In the rectangle analogy for classes, the area of the rectangle represents the_____that the class provides.
Hint
This is the benefit to the rest of the system.
Answer
functionality
- 7In the rectangle analogy, the top edge of the rectangle represents the_____to the class.
Hint
Everything a user must know to use the class.
Answer
interface
- 8A class with a very simple interface but a large amount of functionality underneath is called a_____class.
Hint
Opposite of shallow.
Answer
deep
- 9A class with not much functionality or a very complicated interface is called a_____class.
Hint
Doesn't give much leverage against complexity.
Answer
shallow
- 10The extreme of making too many small classes, where each adds minimal functionality, is called_____.
Hint
A condition where 'more classes are better' is taken too far.
Answer
classitis
- 11To open a file and read serialized objects in Java, you have to create_____objects.
Hint
File stream, buffering, and object input stream.
Answer
three
- 12The Unix file I/O interface is considered a beautiful example of a_____interface.
Hint
It has only five functions but hides enormous complexity.
Answer
deep
- 13The principle of redefining semantics so that there is no error at all is called_____out of existence.
Hint
Eliminate exceptions by making the normal case always work.
Answer
defining errors
- 14In the Tcl unset command, the correct approach is to define the semantics such that unset makes a variable_____exist.
Hint
If it doesn't exist, no action is needed.
Answer
not
- 15The Unix solution for deleting a file while it is open avoids errors by deleting the file from the directory but keeping the_____around until the last open instance is closed.
Hint
The actual data remains accessible.
Answer
contents
- 16Ousterhout argues that the Java substring method should return the_____between the specified indices and the available string contents, rather than throwing an exception.
Hint
Instead of throwing an exception for out-of-range indices.
Answer
overlap
- 17One way to reduce complexity is to minimize the number of places where you have to handle_____.
Hint
These are a huge source of complexity in systems.
Answer
exceptions
- 18The approach where the goal is simply to get something working, often taking shortcuts, is called_____programming.
Hint
Opposite of a longer-term view.
Answer
tactical
- 19The approach where the primary goal is a great design, investing time for future development speed, is called_____programming.
Hint
It's about investing in design today for faster development later.
Answer
strategic
- 20A programmer who turns out large amounts of shoddy code at a high rate is called a tactical_____.
Hint
They leave a wake of destruction.
Answer
tornado
- 21Ousterhout argues that working code is not enough; the real goal should be a_____design.
Hint
It's about more than just functionality.
Answer
great
- 22The fundamental problem with the tactical approach is that complexity grows from hundreds or thousands of small_____made over time.
Hint
Not one big error but many small ones.
Answer
mistakes
- 23Ousterhout estimates that the crossover period where strategic programming catches up to tactical programming is in the_____to 12 month range.
Hint
A range of months.
Answer
6
- 24To implement a strategic approach, one should have a_____tolerance approach to design flaws.
Hint
Don't let any small issues persist.
Answer
zero
- 25Ousterhout suggests that most startups are 100%_____in their approach.
Hint
They feel pressure to ship quickly.
Answer
tactical
- 26The Stanford course on software design is called CS 190 Software Design_____.
Hint
It's taught like a writing class with iteration.
Answer
Studio
- 27In the course, students in teams of two build a system of about 2,000 to 3,000 lines of code in the first_____weeks.
Hint
The first phase.
Answer
three
- 28In the code review phase, the instructor reads every single line of code, totaling 20,000 to 30,000 lines in_____week(s).
Hint
A single week.
Answer
one
- 29The instructor typically makes 50 to_____comments on each team's project.
Hint
A range of comments.
Answer
100
- 30The course uses an iterative cycle of building, reviewing, and revising, repeated_____times in the quarter.
Hint
Number of iterations.
Answer
three
- 31In the third phase, students get a new project and start from scratch rather than building on someone else's code, which was changed to focus more on_____design.
Hint
The change aimed to give more time for actual design work.
Answer
real
- 32The first red flag mentioned is that classes should be_____.
Hint
Opposite of shallow.
Answer
deep
- 33The second red flag is to define_____out of existence.
Hint
Eliminate exceptions.
Answer
errors
- 34A specific red flag pattern is having too many small, shallow_____in a system.
Hint
This is called classitis.
Answer
classes
- 35Ousterhout emphasizes that the most important thing in software design is_____, not the length of methods.
Hint
It's about hiding complexity behind a simple interface.
Answer
abstraction
- 36The Java Class Library is cited as a prime example of_____due to many tiny shallow interfaces.
Hint
The condition of too many small classes.
Answer
classitis
- 37Ousterhout advises that when changing existing code, you should look for something to make_____to compensate for any new complexity.
Hint
To at least break even.
Answer
better
- 38The ideal when modifying code is to end up in the state you would have if you had built the system from scratch with your current_____.
Hint
What you know now.
Answer
knowledge
- 39Ousterhout believes that the strongest argument for a good design culture is that it helps recruit the best_____.
Hint
Top talent, the 10x kind.
Answer
programmers
- 40According to Ousterhout, the investment in good design is typically about 10% to_____% of resources.
Hint
A small percentage.
Answer
20
- 41Ousterhout's personal rule is to write at least 5,000 lines of code per_____to stay engaged.
Hint
A time period.
Answer
year
- 42When hiring, Ousterhout suggests hiring for slope, not_____-intercept.
Hint
The variable representing starting point.
Answer
y
- 43Hyrum's Law states that with sufficient use of an API, all observable_____will be depended on by someone.
Hint
What the API actually does.
Answer
behaviors
- 44Regarding threads, Ousterhout considers them the next to_____alternative.
Hint
Not the worst, but close.
Answer
worst
- 45The reason Tcl did not gain widespread adoption is that it did not effectively transition to the_____.
Hint
The platform that took over GUI applications.
Answer
web
- 46Ousterhout's book "A Philosophy of Software Design" is intended to be a lightning rod to kickstart a_____about software design.
Hint
Conversation.
Answer
discussion

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