CISC 121 Lecture 11: Reuse, modules as part of refinement, bottom-up design, top-down design, hybrids, example

46 views3 pages
Verified Note

Document Summary

Be aware that acquiring a list of functions through the design process may help you spot opportunities for code reuse. It"s possible that one or more function can be made sufficiently generic for use elsewhere in the same program or in another program. At the design stage of a software system it may be the case that some or many functions you"re prototyping fall into logical groupings. If you are working on an application program (app) that requires a lot of geometry, you may choose to prototype a module, as in a separate file, to hold those functions. This, again, is before you actually write any code. An advantage to designing with an eye to creating modules for inclusion (as through a python 3 import) in an eventual program is that it encourages thinking about code reusability. A module containing only geometry functions, for instance, may be of use at some future date in a different program.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions