Skip navigation.

Archives

We Need To Change: Addendum: Wash, Rinse, Repeat

When I was a child I read the instructions on the back of my Mum's shampoo: Wash, rinse, repeat.

It caused a raft of nervous energy in me as I considered my hellish future. Wash my hair; rinse my hair; wash my hair; rinse my hair; ad infinitum.

Of course, the instructions should have read: wash, rinse, and repeat once. Or, to be absolutely clear:

- Wash
- Rinse
- Wash
- Rinse

School's Out!

Teacher: Paul, make a sentence starting with the letter I.

Paul: I is...

Teacher: No, no, no, don't say "I is", you say "I am".

Paul: OK, I am the ninth letter of the alphabet.


This blog is my response to James Bach's comments on his blog to my postings on testing axioms. "Does a set of irrefutable test axioms exist?" and "The 12 Axioms of Testing". There are a lot of comments - all interesting - but many need a separate response. So, Read the following as if it were a conversation - it might make more sense.

Would File Compression Reveal Extent Of Code Duplication?

Here's my thought for the day.

If I were writing a text file compression algorithm, I might start by factoring out duplicate blocks of text (e.g., words or phrases that are used repeatedly) and replace them with short symbols that tell me what text to reinsert when I decompress the file.

In that sense, compression works by removing duplication.

Which sounds a bit like refactoring, doesn't it? Well, it does a little to me, anyway.

TotT: Too Many Tests

In the movie Amadeus, the Austrian Emperor criticizes Mozart's music as having “too many notes.” How many tests are “too many” to test one function?

Consider the method decide:

public void decide(int a, int b, int c, int d,
      int e, int f) {
  if (a > b || c > d || e > f) {
    DoOneThing();
  } else {
    DoAnother();
  } // One-letter variable names are used here only
        because of limited space.
} // You should use better names. Do as I say, not
      as I do. :-)

Novell == Suckers?

I bet that interoperability deal doesn't sound so great now.