Reliability Through Monitoring and Design by Contract

#52 - Software Qualities for Quality Software - Marco Faella

Topic 6 of 12

Published Aug 23, 2021 · Clip 26:54–33:47 (6:52)

Marco explains reliability through monitoring, related to defensive programming and design-by-contract. Methods should have explicit contracts (pre-conditions and post-conditions), which can be enforced via runtime-toggleable assertions. Assertions are turned on during development and off in production, but can be re-enabled to diagnose customer-reported bugs. He also introduces class invariants, properties that should always hold, which assertions can monitor to pinpoint where bugs first violate them.