Separating Editing from Recompilation

A system contains eight read-only client modules, three write-only client modules, two audit-only client modules and four adapter modules. These groups are disjoint. Compare two designs for a required change to an audit method's parameter type.


In the broad design, every listed module directly names one interface containing read, write and audit methods. In the segregated design, each client names only its corresponding focused interface, while every adapter implements all three focused interfaces.


In both designs, the audit change requires source edits to every adapter and every audit-only client. Read-only and write-only clients need no source edits. For this comparison, the build recompiles every listed module that directly names the changed interface and no other modules. Exclude interface-definition modules from all counts.


Report the number of listed modules requiring source edits in each design, the number recompiled in each design, and the percentage reduction in recompiled modules relative to the broad design. Give module counts as exact integers and the percentage to one decimal place.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Design Principles Questions: