Archives
We Need To Change: Addendum: Wash, Rinse, Repeat
Submitted by jamie on Thu, 21/02/2008 - 13:31.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!
Submitted by Paul Gerrard's Blog on Thu, 21/02/2008 - 13:36.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?
Submitted by jason@parlezuml.com (Jason Gorman) on Thu, 21/02/2008 - 18:20.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
Submitted by noreply@blogger.com (dastels) on Thu, 21/02/2008 - 19:04.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. :-)
