Re: Unit tests and parameter validation
Michal Svoboda <[email protected]>
| Newsgroups | gmane.comp.programming.test-driven-development |
|---|---|
| Message-ID | <[email protected]> |
Eb wrote: > Curious how if this changes if one develops inside out. Your probability increases that you develop the wrong thing. :) On the original point, if your guards are mostly about null, then you can annotate your stuff with @Nonnull (or similar if your language supports it). This then makes the contract more like a strong type system and violations can be likely caught by static analysis tools. Michal