Skip to Main Content
Software Essentials
book

Software Essentials

by Adair Dingle
July 2014
Intermediate to advanced content levelIntermediate to advanced
436 pages
12h 27m
English
Chapman and Hall/CRC
Content preview from Software Essentials
374 Appendix C
multiple switch statements must be updated with the option of initializing
the function pointer to hold the address of the appropriate function for the
new subtype. Clearly, maintenance is then tedious. Why is it error-prone?
It is usually not a trivial task to nd all relevant switch statements, espe-
cially if the library system is large and distributed across many modules.
C.2.2 Pass #2: Struct Ties Together Data and Functionality
Our second pass attempts to reduce the soware complexity of the ini-
tial design by tying together data type and functionality. As shown in
Example C4, the LibItem struct denes library item data as well as the
renewal function pointer. Functional decomposition is explicit. e pre-
ProcessRenewal ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Software Architect’s Handbook

Software Architect’s Handbook

Joseph Ingeno
Economics-Driven Software Architecture

Economics-Driven Software Architecture

Ivan Mistrik, Rami Bahsoon, Rick Kazman, Yuanyuan Zhang
Software Architect Bootcamp

Software Architect Bootcamp

Raphael Malveau, Ph.D. Thomas J. Mowbray

Publisher Resources

ISBN: 9781439841204