Strange though it may seem, I don’t have a stay-at-home wife, butler or maid. I reckon I’m not alone. Try telling that to your bank, ticket office, travel agent… or anyone else who may send you something big and/or important.

“No sir, we can only deliver between 9am and 5pm. No, we cannot tell you more precisely than that. Yes, I understand you may not always be at home. No, we can’t leave a note that we failed delivery for you to re-arrange. Yes sir, for security reasons. Yes sir, I understand that you have a day job. Yes sir, I realise you can’t take a holiday every time someone has something to send you. Have you considered taking a sickie? Unethical you say? Why don’t you drink some ammonia and tell us to deliver it the day after?”

Sigh…

Test-driven development

January 8, 2007

First they gave us test scripts. Then, they taught us integration tests. The XP gurus extolled the virtues of unit tests. The test gurues hammered on about functional tests. The python heads brought us DocTests. All of this is nothing, however, compared to IQ-Test-driven development!

>>> obj = portal.restrictedTraverse('/my/object')
>>> context = portal.restrictedTraverse('/some/folder')
>>> wrapped = obj.__of__(context)

 Whoooa! __of__() is an advanced function. I can't let you do
 that Dave, unless you can answer the following two questions
 right:

    (1) What is the difference between Acquisition.Explicit and Acquisition.Implicit?
    (2) What is air speed velocity of a swallow carrying a coconut?

Type your answers below. You have 2 minutes.
?>

:)