4 ms·
Inline assertions do have one big advantage over tests: context. They're right there in the very place where the condition must hold. For that reason, I have lo
by usefulcat 3y ago
Inline assertions do have one big advantage over tests: context. They're right there in the very place where the condition must hold. For that reason, I have long thought of assertions as 'comments with teeth'. Also, inline assertions can be enabled any time, not just when running unit tests.
Of course in theory that last bit shouldn't make any difference, but then I'm sure you've already heard the old joke about the difference between theory and practice..
- lelanthran 3y ago> I'm sure you've already heard the old joke about the difference between theory and practice.. It's not a joke, it's a fact of life that we learn soon after graduating, and then relearn again, and again, and ...