The defensive-programming tag has no wiki summary.
3
votes
3answers
212 views
Is it worth to try write foolproof data structures?
The problem
We need to store data in a table-like way, but we have very strict space constraints (~1Mb per table of 10k+ rows). We store data like this:
ID | reviews | factor | score | interval | ...
31
votes
8answers
4k views
Defensive Programming vs Exception Handling?
I'm working through the book "Head First Python" (it's my language to learn this year) and I got to a section where they argue about two code techniques: Defensive coding vs Exception handling. Here ...
7
votes
2answers
769 views
Differences between Design by Contract and Defensive Programming
Could Designing by Contract (DbC) be a way to program defensively?
Is one way of programming better in some cases than the other?
10
votes
3answers
190 views
Do I need to deal with the situation where private methods are called through reflection?
When creating a library, must I ensure that the private methods must work as expected when called not by other methods of the same class, but by another library through reflection?
For example, if a ...
8
votes
4answers
344 views
How defensive should we be?
We've been running Pex over some code, and it has been showing some good things (well bad things, but showing them before it gets to production!).
However, one of the nice things about Pex is that it ...