Failfast
- 7. A: Bugs that appear unexpectedly
after a long time of operating
normally!
7
- 10. Can you debug this ?
Imagine this in a web based app & the developer had a typo in config file
10
- 13. Assertions
What’s assertion ?!
Make sure that your language fails on assertion error.!
When is the most suitable time to do assertion.!
Assertion doesn’t conflict with logging.
13
- 23. 23
and even better
If the maxConnections wasn’t found or mistyped it will throw!
something like this one:
- 25. Summary
Don’t fail silently and save your time and out time.!
Assert whenever you comment.!
Assert.notNull(_instanceVariable).!
Fail with description.!
Use a global handler for users sake.
25