上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Bottom-Up Implementation Even though we've been careful with the design,there's no guarantee we haven't introduced some silly errors. Implementation is best done in small pieces. 11
11 Bottom-Up Implementation • Even though we’ve been careful with the design, there’s no guarantee we haven’t introduced some silly errors. • Implementation is best done in small pieces
上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Unit Testing A good way to systematically test the implementation of a modestly sized program is to start at the lowest levels of the structure. testing each component as it's completed. For example,we can import our program and execute various routines/functions to ensure they work properly. 12
12 Unit Testing • A good way to systematically test the implementation of a modestly sized program is to start at the lowest levels of the structure, testing each component as it’s completed. • For example, we can import our program and execute various routines/functions to ensure they work properly