Re: Re: Unit tests and parameter validation

Ron Jeffries <[email protected]>
Newsgroups gmane.comp.programming.test-driven-development
Message-ID <[email protected]>
Hi David,

On Oct 20, 2013, at 2:00 AM, "Parsons, David" <[email protected]> wrote:

> An interesting discussion. I must admit that it hadn't really occurred to me that much parameter validation could be a complete waste of time, so thanks for the insight. 
> 
> It does seem to me that even if you develop 'inside out' you will sometimes need to work 'outside in', for example if you are using a mock, or if you apply refactorings that extract classes or methods.


In fact I generally work "outside-in", with occasional experiments on "I wonder whether, if I took this course, I could make such and so happen", where I'll build some inside thing. I would save that thing for reference, perhaps, but would not expect to use it as is. The experiment would be to teach me what's possible and a bit about how to do it. Then I'd let my usage of the thing tell me what it wants to be.

And either direction, parameter checking would be rare. As would mocks, being as I'm Detroit School and all.

Ron Jeffries
www.XProgramming.com
If it is more than you need, it is waste. -- Andy Seidl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.