Re: TDD and Refactoring

From: Ron Jeffries (ronjeffries_at_REMOVEacm.org)
Date: 12/26/03


Date: Fri, 26 Dec 2003 07:10:11 -0500

On Fri, 26 Dec 2003 09:34:26 +0000, herwin@theworld.com (Harry Erwin) wrote:

>> Replacing temp with query, I would say, does not increase complexity: there's
>> exactly one query per temp. Perhaps I'm missing something.
>
>You replace an expression with a method.

Yes. I'm not clear on why you feel that that increases complexity. It does add a
method. But in many cases, it seems to me, using that refactoring decreases
complexity, particularly in the form of coupling. Otherwise, why would we do it?

-- 
Ronald E Jeffries
http://www.XProgramming.com
http://www.objectmentor.com
I'm giving the best advice I have. You get to decide whether it's true for you.


Relevant Pages

  • Re: Query Enhancement Request
    ... SELECT tbl_main.cbID AS id, Val) AS sort1 ... Assuming that new table is called temp, ... Yesterday I got some great help on my problem with my query and I would ... Missing or out of place data? ...
    (microsoft.public.access.queries)
  • How to return single resultset with multiple database queries
    ... This might be the wrong group to post this query, ... because of their complexity. ... My final results are in the temp tables. ... How can I return a single result set from these multiple queries? ...
    (microsoft.public.dotnet.languages.csharp)
  • ADO update and tables with more than 127 fileds
    ... I noticed that for the big tables the code instead to modify ... edited record (by setting new values and then calling update) deletes the ... query. ... there are methods/variables to control the complexity of the ...
    (microsoft.public.data.ado)
  • ADO update and tables with more than 127 fileds
    ... I noticed that for the big tables the code instead to modify ... edited record (by setting new values and then calling update) deletes the ... query. ... there are methods/variables to control the complexity of the ...
    (microsoft.public.vb.general.discussion)
  • a failed approach to resolving P vs. NP
    ... but used descriptive complexity ... totally ordered FOqueries that map themselves to false. ... If it maps itself to true, then it is a query ... ensure your LFP queries are valid. ...
    (comp.theory)