3 ms·
Defensive programming leads to hell. The next one looking at the code won't be able to tell the actual business logic from defensive checks, or what may happen
by noisem4ker 7y ago
Defensive programming leads to hell. The next one looking at the code won't be able to tell the actual business logic from defensive checks, or what may happen from what should never happen. I've been badly burned by this, especially while trying to reconstruct flows from badly documented code.