develooper Front page | perl.qa | Postings from January 2009

Re: numeric plans - feature or symptom?

From:
Eric Wilhelm
Date:
January 23, 2009 09:35
Subject:
Re: numeric plans - feature or symptom?
Message ID:
200901230934.54965.scratchcomputing@gmail.com
# from Fergal Daly
# on Friday 23 January 2009 02:07:

>The point is that you want to declare your intention independently
>from taking the action. If you declare the plan alongside performing
>it, then your planning becomes subject to bugs.

I'm sure that for every reason someone can cite about needing a 
statically coded numeric plan, I can point out in detail a method of 
refactoring such that the plan becomes a number which is at least 
closer to the data involved.  If you generate the list of things to 
check, code in a test that this list is 7.

You simply need to assert what you mean to assert *where* you mean to 
assert it.  That might be a static number in one place while in another 
place you might simply check for matched sets and so on.

--Eric
-- 
"Matter will be damaged in direct proportion to its value."
--Murphy's Constant
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About