Re: Unit tests and parameter validation
Eb <[email protected]>
| Newsgroups | gmane.comp.programming.test-driven-development |
|---|---|
| Message-ID | <CANEY99a00Ba_O7ETZcVcseSQfUJ36276KuJ4oAb2TyMU2v234g@mail.gmail.com> |
How so? On Fri, Oct 18, 2013 at 1:36 PM, Michal Svoboda <[email protected]> wrote: > ** > > > 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 > > > -- blog: http://eikonne.wordpress.com twitter: @eikonne