Defensive Code: What you don’t know will bite you
![The word code falling behind a fence.](https://kreyz.com/wp-content/uploads/2019/08/defensivecode-350x280.png)
Defensive Code is an overloaded term. Many articles revolve around topics like the fail fast principle where you verify the bounds of a function before proceeding. There are opinions about the effectiveness and maintainability of a code base with redundant checks. Still, the principle behind defensive code is that Murphy’s…