Reading Chapter 4 Section 9 Sample Development - service provider - definition: a class that provides some type of service - generally designed as a reusable class - controller - definition: a class that manages other classes and objects in a program - generally not designed to be reusable - strategies for implementing multiple classes - top-down development - develop outside-in - develop the top-level controller class first - must write temporary dummy service objects (ones that return fake values of the correct type) to test - bottom-up development - develop inside-out - develop service classes first - requires temporary dummy main class - design programs that are easy to understand by using several short methods as opposed to one very long one - requiring the client to call a collection of methods in a specific order - very poor design - generally unacceptable - stub: method that has no statements that really do anything inside the method body - Wu convention to use // TEMP to mark temporary sections of code to make them easier to find - test after every step of development - even if changes are small - verify nothing unexpected happened