[ Content | View menu ]

Self-Confident Code

Mark Mzyk November 9, 2008

Pervasive null tests are a code smell. – Avdi Grimm I agree. If you’re often checking for null, then you don’t trust your code.  Why don’t you trust it?  Instead of checking for null, why don’t you fix the failure point that is causing the null? Null checks violate the fail fast, fail often principle.  […]