I've read two really interesting pieces of advice, recently:
- In the comments to this StackOverflow answer, @Mike Weller says to leave your asserts on in production code... what's the performance hit, really? Is there any reason NOT to leave them in?
- In Vincent Gable's blog, he states that you should prefer
assert
overNSAssert
... is there any reason NOT to useassert
? (it's less letters :))