Assertions
Architecture and code structurestub
Intent
Use assertions to verify preconditions and to make a program fail early when something goes fundamentally wrong.
Related patterns
-
Use Invariants to Kill Zombies
Provide a safe approach in situations where it seems to dangerous to delete code or whole modules from a huge system because Static Code Analysis can’t recognize whether the code is still in use or not.
Found a mistake or want to add your experience? Edit this pattern on GitHub.