in reply to Re: Inverted logic
in thread Inverted logic

The code I posted contained (a simplified version of) my test condition.

What good would removing the inner loop do, when it was the inner loop that was the both the heart of the question and the source of the misrefactoring?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^3: Inverted logic
by Anonymous Monk on Jul 25, 2013 at 07:23 UTC

    What good would removing the inner loop do, when it was the inner loop that was the both the heart of the question and the source of the misrefactoring?

    Turning it into a subroutine makes the logic easier to see?