CMPT 115 Lecture Notes - Lecture 5: Code Reuse, Software Projects, Institute For Operations Research And The Management Sciences
Document Summary
Notes written by michael horsch, mark eramian, ian mcquillan, lingling jin, and dmytro dyachuk. Motivation: writing larger applications: a good strategy: separate large software projects into several components. Some components can be re-used in (or from) other projects. Design decisions should be made for each component, without a ecting other components: abstract data types help us design such components, abstract data types (adts) provide guidance for good design. We will explore these ideas in detail in this lecture. Consider the idea of a list: use to store a collection of related information, the list implies a sequence, which could be meaningful. E. g. , a todo list: tasks ordered according to importance: there are certain things we want to do with lists: Add items, search for items, remove items, and more: ideal properties of lists as adt: The details of how lists are programmed is hidden. The operations (add, search, remove, sort, etc) give us functionality we want.