30 July 2024 by Phillip JohnstonWe normally focus on information hiding, modularity, and encapsulation from the perspective of supporting change, but that is not the only reason to employ these ideas. By creating modules that encapsulate device behaviors and reusing those modules throughout the system(s), you can more easily maintain your systems from a resource use perspective. Consider a typical approach to working with a processor peripheral, such as a shared SPI bus. Each component that uses the SPI interface will have slightly different call orders, parameters, etc. You are likely to find that the code repeats some actions unnecessarily …
Continue reading “Modularity Enables Resource Management”
