Zen of Defensive Programming: Code Safety
We are now reaching the part that people usually associate with Defensive Programming: Code Safety. As I mentioned previously, often considered to be the only subject in defensive programming, as you have seen, it represents only a small subset of the subject as a whole. Code safety generally consists of two steps, typically: Assertions and Guard Clauses. Assertions Assertions are… Continue reading "Zen of Defensive Programming: Code Safety"