Cross Purposes

As I prepare to test for my Java certifications, I am frequently reminded that patience is not always a virtue. See below:

03. class Alpha {
04.   static String s = " ";
05.   protected Alpha() {
06.     s += "alpha ";
07.   }
08. }
09. class SubAlpha extends Alpha {
10.     private SubAlpha() {
11.       s += "sub ";
12.     }
13. }
14. public class SubSubAlpha extends Alpha {
15.    private SubSubAlpha() {
16.      s += "subsub ";
17.    }
18.    public static void main( String[] args ) {
19.      new SubSubAlpha();
20.      System.out.println( s );
21.    }
22. }

What is the result?
A.  subsub
B.  sub subsub
C.  alpha subsub
D.  alpha sub subsub
E.  Compilation fails
F.  An exception is thrown at runtime

Answer:  C is correct.  Watch out, because SubSubAlpha extends
Alpha!  Since the code doesn't attempt to make a SubAlpha, the
private constructor in SubAlpha is okay.

Yes, I must concede that I got this particular question wrong. And you know what? I’m not going to lose a bit of sleep over it. While I regularly use private constructors in my classes, I have yet to use them in tandem with any descendents of said classes. If I was willing (or perhaps able) to spend more than two or three minutes on the problem during the exam, the private constructor would have received additional scrutiny and led me along a path to the correct answer.

The point is this: I could have made the investment of an hour and I never would have noticed the SubSubAlpha extends Alpha bullshit, which serves as a nearly instantaneous escape hatch for the inexperienced and superficially intelligent. People who write obnubilated code and excel at these types of questions are the kind you want working for your competitors, not with you.

Formless Cloud and Vacant Depth

Excerpt from the novel Jane Eyre icon-external-link-12x12 icon-search-12x12 by Charlotte Brontë icon-external-link-12x12 icon-search-12x12

     While disease had thus become an inhabitant of Lowood, and death its frequent visitor; while there was gloom and fear within its walls; while its rooms and passages steamed with hospital smells, the drug and the pastille striving vainly to overcome the effluvia of mortality, that bright May shone unclouded over the bold hills and beautiful woodland out of doors. Its garden, too, glowed with flowers: hollyhocks had spring up tall as trees, lilies had opened, tulips and roses were in bloom; the borders of the little beds were gay with pink thrift and crimson double daisies; the sweetbriars gave out, morning and evening, their scent of spice and apples; and these fragrant treasures were all useless for most of the inmates of Lowood, except to furnish now and then a handful of herbs and blossoms to put in a coffin.
     But I, and the rest who continued well, enjoyed fully the beauties of the scene, and season: they let us ramble in the wood, like gipsies, from morning till night; we did what we liked, went where we liked: we lived better too. Mr Brocklehurst and his family never came near Lowood now: household matters were not scrutinised into; the cross housekeeper was gone, driven away by the fear of infection; her successor, who had been matron at Lowton Dispensary, unused to the ways of her new abode, provided with comparative liberality. Besides, there were fewer to feed: the sick could eat little; our breakfast-basins were better filled: when there was no time to prepare regular dinner, which often happened, she would give us a large a piece of cold pie, or a thick slice of bread and cheese, and this we carried away with us to the wood, where we each chose the spot we liked best, and dined sumptuously.
     My favourite seat was a smooth and broad stone, rising white and dry from the very middle of the beck, and only to be got at by wading through the water; a feat I accomplished barefoot. The stone was just broad enough to accommodate, comfortably, another girl and me, at that time my chosen comrade—one Mary Ann Wilson; a shrewd, observant personage, whose society I took pleasure in, partly because she was witty and original, and partly because she had a manner which set me at my ease. Some years older than I, she knew more of the world, and could tell me many things I liked to hear: with her my curiosity found gratification: to my faults also she gave ample indulgence, never imposing curb or rein on anything I said. She had a turn for narrative, I for analysis; she liked to inform, I to question; so we got on swimmingly together, deriving much entertainment, if not much improvement from our mutual intercourse.
     And where, meantime, was Helen Burns? Why did I not spend these sweet days of liberty with her? Had I forgotten her? or was I so worthless as to have grown tired of her pure society? Surely the Mary Ann Wilson I have mentioned was inferior to my first acquaintance: she could only tell me amusing stories, and reciprocate any racy and pungent gossip I chose to indulge in; while, if I have spoken truth of Helen, she was qualified to give those who enjoyed the privilege of her converse, a taste of far higher things.
     True, reader; and I knew and felt this: and though I am a defective being, with many faults and few redeeming points, yet I never tired of Helen Burns; nor ever ceased to cherish for her a sentiment of attachment, as strong, tender, and respectful as any that ever animated my heart. How could it be otherwise, when Helen, at all times and under all circumstances, evinced for me a quiet and faithful friendship, which ill-humour never soured, nor irritation ever troubled? But Helen was ill at present: for some weeks she had been removed from my sight to I knew not what room upstairs. She was not, I was told, in the hospital portion of the house with the fever patients; for her complaint was consumption, not typhus: and by consumption I, in my ignorance, understood something mild, which time and care would be sure to alleviate.
     I was confirmed in this idea by the fact of her once or twice coming downstairs on very warm sunny afternoons, and being taken by Miss Temple into the garden: but, on these occasions, I was not allowed to go and speak to her; I only saw her from the schoolroom window, and then not distinctly; for she was much wrapped up, and sat at a distance under the veranda.
     One evening, in the beginning of June, I had stayed out very late with Mary Ann in the wood; we had, as usual, separated ourselves from the others, and had wandered far: so far that we lost our way, and had to ask it at a lonely cottage, where a man a woman lived, who looked after a herd of half-wild swine that fed on the mast in the wood. When we got back, it was after moonrise: a pony, which we knew to be the surgeon’s, was standing at the garden door. Mary Ann remarked that she supposed someone must be very ill, as Mr Bates had been sent for at that time of the evening. She went into the house; I stayed behind a few minutes to plant in my garden a handful of roots I had dug up in the forest, and which I feared would wither if I left them till the morning. This done, I lingered yet a little longer: the flowers smelt so sweet as the dew fell; it was such a pleasant evening, so serene, so warm; the still glowing west promised so fairly another fine day on the morrow; the moon rose with such majesty in the grave east. I was noting these things and enjoying them as a child might, when it entered my mind as it had never done before —
     ‘How sad to be lying now on a sick-bed, and to be in danger of dying! This world is pleasant — it would be dreary to be called from it, and to have to go who knows where?’
     And then my mind made its first earnest effort to comprehend what had been infused into it concerning heaven and hell: and for the first time it recoiled, baffled: and for the first time glancing behind, on each side, and before it, it saw all round an unfathomed gulf: it felt the one point where it stood — the present; all the rest was formless cloud and vacant depth; and it shuddered at the thought of tottering, and plunging amid that chaos. While pondering this new idea, I heard the front door open; Mr Bates came out, and with him was a nurse. After she had seen him mount his horse and depart, she was about to close the door, but I ran up to her.
     ‘How is Helen Burns?’
     ‘Very poorly,’ was the answer.
     ‘Is it her Mr Bates has been to see?’
     ‘Yes.’
     ‘And what does he say about her?’
     ‘He says she’ll not be here long.’
     This phrase, uttered in my hearing yesterday, would have only conveyed the notion that she was about to be removed to Northumberland, to her own home. I should not have suspected that it meant she was dying; but I knew instantly now: it opened clear on my comprehension that Helen Burns was numbering her last days in this world, and that she was going to be taken to the region of spirits, if such region there were. I experienced a shock of horror, then a strong thrill of grief, then a desire — a necessity to see her; and I asked in what room she lay.
     ‘She is in Miss Temple’s room,’ said the nurse.
     ‘May I go up and speak to her?’
     ‘Oh no, child! It is not likely; and now it is time for you to come in; you’ll catch the fever if you stop out when the dew is falling.’
     The nurse closed the front door; I went in by the side entrance which led to the schoolroom: I was just in time; it was nine o’clock, and Miss Miller was calling the pupils to go to bed.
     It might be two hours later, probably near eleven, when I — not having been able to fall asleep, and deeming, from the perfect silence of the dormitory, that my companions were all wrapt in profound repose — rose softly, put on my frock over my night-dress, and, without shoes, crept from the apartment, and set off in quest of Miss Temple’s room. It was quite at the other end of the house; but I knew my way; and the light of the unclouded summer moon, entering here and there at passage windows, enabled me to find it without difficulty. An odour of camphor and burnt vinegar warned me when I came near the fever-room: and I passed its door quickly, fearful lest the nurse who sat up all night should hear me. I dreaded being discovered and sent back; for I must see Helen — I must embrace her before she died — I must give her one last kiss, exchange with her one last word.
     Having descended a staircase, traversed a portion of the house below, and succeeded in opening and shutting, without noise, two doors, I reached another flight of steps; these I mounted, and then just opposite to me was Miss Temple’s room. A light shone through the keyhole, and from under the door; a profound stillness pervaded the vicinity. Coming near, I found the door slightly ajar; probably to admit some fresh air into the close abode of sickness. Indisposed to hesitate, and full of impatient impulses — soul and senses quivering with keen throes — I put it back and looked in. My eye sought Helen, and feared to find death.
     Close to Miss Temple’s bed, and half covered with its white curtains, there stood a little crib. I saw the outline of a form under the clothes, but the face was hid by the hangings: the nurse I had spoken to in the garden sat in an easy-chair, asleep; an unsnuffed candle burnt dimly on the table. Miss Temple was not to be seen: I knew afterwards that she had been called to a delirious patient in the fever-room. I advanced: then paused by the crib side: my hand was on the curtain, but I preferred speaking before I withdrew it. I still recoiled at the dread of seeing a corpse.
     ‘Helen!’ I whispered softly; ‘are you awake?’
     She stirred herself, put back a curtain, and I saw her face, pale, wasted, but quite composed; she looked so little changed that my fear was instantly dissipated.
     ‘Can it be you, Jane?’ she asked, in her own gentle voice.
     ‘Oh!’ I thought, ‘she is not going to die; they are mistaken: she could not speak and look so calmly if she were.’
     I got on to her crib and kissed her: her forehead was cold, and her cheek both cold and thin, and so were her hand and wrist: but she smiled as of old.
     ‘Why are you come here, Jane? It is past eleven o’clock: I heard it strike some minutes since.’
     ‘I came to see you, Helen: I heard you were very ill, and I could not sleep till I had spoken to you.’
     ‘You came to bid me good-bye, then: you are just in time probably.’
     ‘Are you going somewhere, Helen? Are you going home?’
     ‘Yes; to my long home — my last home.’
     ‘No, no, Helen!’ I stopped, distressed. While I tried to devour my tears, a fit of coughing seized Helen; it did not, however, wake the nurse. When it was over, she lay some minutes exhausted; then she whispered —
     ‘Jane, your little feet are bare; lie down and cover yourself with my quilt.’
     I did so: she put her arm over me, and I nestled close to her. After a long silence, she resumed, still whispering —
     ‘I am very happy to see you, Jane; and when you hear that I am dead, you must be sure and not grieve: there is nothing to grieve about. We all must die one day, and the illness which is removing me is not painful; it is gentle and gradual: my mind is at rest. I leave no one to regret me much: I have only a father; and he is lately married, and will not miss me. By dying young, I shall escape great sufferings. I had not qualities or talents to make my way very well in the world: I should have been continually at fault.’
     ‘But where are you going to, Helen? Can you see? Do you know?’
     ‘I believe; I have faith: I am going to God.’
     ‘Where is God? What is God?’
     ‘My Maker and yours, who will never destroy what He created. I rely implicitly on His power, and confide wholly in His goodness: I count the hours till that eventful one arrives which shall restore me to Him, reveal Him to me.’
     ‘You are sure, then, Helen, that there is such a place as heaven; and that our souls can get to it when we die?’
     ‘I am sure that there is a future state; I believe God is good; I can resign my immortal part to Him without any misgiving. God is my father; God is my friend: I love Him; I believe He loves me.’
     ‘And shall I see you again, Helen, when I die?’
     ‘You will come to the same region of happiness: be received by the same mighty universal Parent, no doubt, dear Jane.’
     Again I questioned; but this time only in thought. ‘Where is that region? Does it exist?’ And I clasped my arms closer round Helen; she seemed dearer to me than ever; I felt as if I could not let her go; I lay with my face hidden on her neck. Presently she said in the sweetest tone —
     ‘How comfortable I am! That last fit of coughing has tired me a little; I feel as if I could sleep: but don’t leave me Jane; I like to have you near me.’
     ‘I’ll stay with you, dear Helen: no one shall take me away.’
     ‘Are you warm, darling?’
     ‘Yes.’
     ‘Good-night, Jane.’
     ‘Good-night, Helen.’
     She kissed me, and I her, and we both soon slumbered.
     When I awoke it was day: an unusual movement roused me; I looked up; I was in somebody’s arms; the nurse held me; she was carrying me through the passage back to the dormitory. I was not reprimanded for leaving my bed; people had something else to think about: no explanation was afforded then to my many questions; but a day or two afterwards I learned that Miss Temple, on returning to her own room at dawn, had found me laid in a little crib; my face against Helen Burns’s shoulder, my arms around her neck. I was asleep, and Helen was — dead.
     Her grave is in Brocklebridge Churchyard: for fifteen years after her death it was only covered by a grassy mound; but now a gray marble tablet marks the spot, inscribed with her name, and the word ‘Resurgam.’

Their Armor of Razor-Sharp Dextrose Crystals

Excerpt from the novel Cryptonomicon icon-external-link-12x12 icon-search-12x12 by Neal Stephenson icon-external-link-12x12 icon-search-12x12

     The condemned man [Randall Lawrence Waterhouse] showers, shaves, puts on most of a suit, and realizes that he is ahead of schedule. He turns on the television, gets a San Miguel out of the fridge to steady his nerves, and then goes to the closet to get the stuff of his last meal. The apartment only has one closet and when its door is open it appears to have been bricked shut, Cask of Amontillado-style, with very large flat red oblongs, each imprinted with the image of a venerable and yet oddly cheerful and yet somehow kind of hauntingly sad naval officer. The whole pallet load was shipped here several weeks ago by Avi, in an attempt to lift Randy’s spirits. For all Randy knows more are still sitting on a Manila dockside ringed with armed guards and dictionary-sized rat traps straining against their triggers, each baited with a single golden nugget.
     Randy selects one of the bricks from this wall, creating a gap in the formation, but there is another, identical one right behind it, another picture of that same naval officer. They seem to be marching from his closet in a peppy phalanx. “Part of this complete balanced breakfast,” Randy says. Then he slams the door on them and walks with a measured, forcibly calm step to the living room where he does most of his dining, usually while facing his thirty-six-inch television. He sets up his San Miguel, an empty bowl, an exceptionally large soup spoon—so large that most European cultures would identify it as a serving spoon and most Asian ones as a horticultural implement. He obtains a stack of paper napkins, not the brown recycled ones that can’t be moistened even by immersion in water, but the flagrantly environmentally unsound type, brilliant white and cotton-fluffy and desperately hygroscopic. He goes to the kitchen, opens the fridge, reaches deep into the back, and finds an unopened box-bag-pod-unit of UHT milk. UHT milk need not, technically, be refrigerated, but it is pivotal, in what is to follow, that the milk be only a few microdegrees above the point of freezing. The fridge in Randy’s apartment has louvers in the back where the cold air is blown in, straight from the freon coils. Randy always stores his milk-pods directly in front of those louvers. Not too close, or else the pods will block the flow of air, and not too far away either. The cold air becomes visible as it rushes in and condenses moisture, so it is a simple matter to sit there with the fridge door open and observe its flow characteristics, like an engineer testing an experimental minivan in a Rover Rouge wind tunnel. What Randy would like to see, ideally, is the whole milk-pod enveloped in an even, jacketlike flow to produce better heat exchange through the multilayered plastic-and-foil skin of the milk-pod. He would like the milk to be so cold that when he reaches in and grabs it, he feels the flexible, squishy pod stiffen between his fingers as ice crystals spring into existence, summoned out of nowhere simply by the disturbance of being squished.
     Today the milk is almost, but not quite, that cold. Randy goes into his living room with it. He has to wrap it in a towel because it is so cold it hurts his fingers. He launches a videotape and then sits down. All is in readiness.
     This is one of a series of videotapes that are shot in an empty basketball gym with a polished maple floor and a howling, remorseless ventilation system. They depict a young man and a young woman, both attractive, svelte, and dressed something like marquee players in the Ice Capades, performing simple ballroom dance steps to the accompaniment of strangled music from a ghetto blaster set up on the free-throw line. It is miserably clear that the video has been shot by a third conspirator who is burdened with a consumer-grade camcorder and reeling from some kind of inner-ear disease that he or she would like to share with others. The dancers stomp through the most simple steps with autistic determination. The camera operator begins in each case with a two-shot, then, like a desperado tormenting a milksop, aims his weapon at their feet and makes them dance, dance, dance. At one point the pager hooked to the man’s elastic waistband goes off and a scene has to be cut short. No wonder: he is one of the most sought-after ballroom dance instructors in Manila. His partner would be too, if more men in this city were interested in learning to dance. As it is, she must scrape by earning maybe a tenth of what the male instructor pulls down, giving lessons to a small number of addled or henpecked stumbebums like Randy Waterhouse.
     Randy takes the red box and holds it securely between his knees with the handy stay-closed tab pointing away from him. Using both hands in unison he carefully works his fingertips underneath the flap, trying to achieve equal pressure on each side, paying special attention to places where too much glue was laid down by the gluing-machine. For a few long, tense moments, nothing at all happens, and an ignorant or impatient observer might suppose that Randy is getting nowhere. But then the entire flap pops open in an instant as the entire glue-front gives way. Randy hates it when the box-top gets bent or, worst of all possible words, torn. The lower flap is merely tacked down with a couple of small glue-spots and Randy pulls it back to reveal a translucent, inflated sac. The halogen down-light recessed in the ceiling shines through the cloudy material of the sac to reveal gold—everywhere the glint of gold. Randy rotates the box ninety degrees and holds it between his knees so its long axis is pointed at the television set, then grips the top of the sac and carefully parts its heat-sealed seam, which purrs as it gives way. Removal of the somewhat milky plastic barrier causes the individual nuggets of Cap’n Crunch to resolve, under the halogen light, with a kind of preternatural crispness and definition that makes the roof of Randy’s mouth glow and throb in trepidation.
     On the TV, the dancing instructors have finished demonstrating the basic steps. It is almost painful to watch them doing the compulsories, because when they do, they must willfully forget everything they know about advanced ballroom dancing, and dance like persons who have suffered strokes, or major brain injuries, that have wiped out not only the parts of their brain responsible for fine motor skills but also blown every panel in the aesthetic-discretion module. They must, in other words, dance the way their beginning pupils like Randy dance.
     The gold nuggets of Cap’n Crunch pelt the bottom of the bowl with a sound like glass rods being snapped in half. Tiny fragments spall away from their corners and ricochet around on the white porcelain surface. World-class cereal-eating is a dance of fine compromises. The giant heaping bowl of sodden cereal, awash in milk, is the mark of the novice. Ideally one wants the bone-dry cereal nuggets and the cryogenic milk to enter the mouth with minimal contact and for the entire reaction between them to take place in the mouth. Randy has worked out a set of mental blueprints for a special cereal-eating spoon that will have a tube running down the handle and a little pump for the milk, so that you can spoon dry cereal up out of a bowl, hit a button with your thumb, and squirt milk into the bowl of the spoon even as you are introducing it into your mouth. The next best thing is to work in small increments, putting only a small amount of Cap’n Crunch in your bowl at a time and eating it all up before it becomes a pit of loathsome slime, which, in the case of Cap’n Crunch, takes about thirty seconds.
     At this point in the videotape he always wonders if he’s inadvertently set his beer down on the fast-forward button, or something, because the dancers go straight from their vicious Randy parody into something that obviously qualifies as advanced dancing. Randy knows that the steps they are doing are nominally the same as the basic steps demonstrated earlier, but he’s damned if he can tell which is which, once they go into their creative mode. There is no recognizable transition, and that is what pisses Randy off, and has always pissed him off, about dancing lessons. Any moron can learn to trudge through the basic steps. That takes all of half an hour. But when that half-hour is over, dancing instructors always expect you’ll take flight and go through one of those miraculous time-lapse transitions that happen only in Broadway musicals and begin dancing brilliantly. Randy supposes that people who are lousy at math feel the same way: the instructor writes a few simple equations on the board, and ten minutes later he’s deriving the speed of light in a vacuum.
     He pours the milk with one hand while jamming the spoon in with the other, not wanting to waste a single moment of the magical, golden time when cold milk and Cap’n Crunch are together but have not yet begin to pollute each other’s essential natures: two Platonic ideals separated by a boundary a molecule wide. Where the flume of milk splashes over the spoon-handle, the polished stainless steel fogs with condensation. Randy of course uses whole milk, because otherwise why bother? Anything less is indistinguishable from water, and besides he thinks that the fat in the whole milk acts as some kind of buffer that retards the dissolution-into-slime process. The giant spoon goes into his mouth before the milk in the bowl has even had time to seek its level. A few drips come off the bottom and are caught by his freshly washed goatee (still trying to find the right balance between beardedness and vulnerability, Randy has allowed one of these to grow). Randy sets the milk-pod down, grabs a fluffy napkin, lifts it to his chin, and uses a pinching motion to sort of lift the drops of milk from his whiskers rather than smashing and smearing them down into the beard. Meanwhile all his concentration is fixed of the interior of his mouth, which naturally he cannot see, but which he can imagine in three dimensions as if zooming through it in a virtual reality display. Here is where a novice would lose his cool and simply chomp down. A few of the nuggets would explode between his molars, but then his jaw would snap shut and drive all the unshattered nuggets straight up into his palate where their armor of razor-sharp dextrose crystals would inflict massive collateral damage, turning the rest of the meal into a sort of pain-hazed death march and rendering him Novocain-mute for three days. But Randy has, over time, worked out a really fiendish Cap’n Crunch eating strategy that revolves around playing the nuggets’ most deadly features against each other. The nuggets themselves are pillow-shaped and vaguely striated to echo piratical treasure chests. Now, with a flake-type of cereal, Randy’s strategy would never work. But then, Cap’n Crunch in a flake form would be suicidal madness; it would last about as long, when immersed in milk, as snowflakes sifting down into a deep fryer. No, the cereal engineers at General Mills had to find a shape that would minimize surface area, and, as some sort of compromise between the sphere that is dictated by Euclidean geometry and whatever sunken-treasure-related shapes that the cereal-aesthiticians were probably clamoring for, they came up with this hard-to-pin-down striated pillow formation. The important thing, for Randy’s purposes, is that the individual pieces of Cap’n Crunch are, to a very rough approximation, shaped kind of like molars. The strategy, then, is to make the Cap’n Crunch chew itself by grinding the nuggets together in the center of the oral cavity, like stones in a lapidary tumbler. Like advanced ballroom dancing, verbal explanations (or for that matter watching videotapes) only goes so far and then your body just has to learn the moves.
     By the time he has eaten a satisfactory amount of Cap’n Crunch (about a third of a 25-ounce box) and reached the bottom of his beer bottle, Randy has convinced himself that this whole dancing thing is a practical joke. When he reaches the hotel, Amy and Doug Shaftoe will be waiting for him with mischievous smiles. They will tell him they were just teasing and then take him into the bar to talk him down.
     Randy puts on the last few bits of his suit. Any delaying tactics are acceptable at this point, so he checks his email.

TWO BY FOUR BOARDS ONE HUNDRED COUNT LENGTH EIGHT FEET

Excerpt from the novel Cryptonomicon icon-external-link-12x12 icon-search-12x12 by Neal Stephenson icon-external-link-12x12 icon-search-12x12

     [Lawrence Pritchard] Waterhouse sketches out some plans for the upcoming work, at long last putting his hitherto misspent engineering skills to some use. He draws up a bill of required materials, naturally involving a good many numbers; 100 8′ 2 x 4s is a typical entry. He writes out the list a second time, in words not numbers: ONE HUNDRED EIGHT FOOT TWO BY FOURS. This wording is potentially confusing, so he changes it to TWO BY FOUR BOARDS ONE HUNDRED COUNT LENGTH EIGHT FEET.
     Next he pulls a sheet of what looks like ledger paper, divided vertically into groups of five columns. Into these columns he transcribes the message, ignoring spaces:

T W O B Y   F O U R B   O A R D S   O N E H U   N D R E D
C O U N T   L E N G T   H E I G H   T F E E T

and so on. Wherever he encounters a letter J he writes I in its stead, so that JOIST comes out as IOIST. He only uses every third line of the page.
     Ever since he left Bletchley Park, he has been carrying several sheets of onionskin paper around in his breast pocket; when he sleeps, he puts them under his pillow. Now he takes them out and selects one page, which has a serial number typed across the top and is otherwise covered with neatly typed letters like this:

A T H O P   C O G N Q   D L T U I   C A P R H   M U L E P

and so on, all the way down to the bottom of the page.
     These sheets were typed up by a Mrs. Tenney, an aged vicar’s wife who works at Bletchley Park. Mrs. Tenney has a peculiar job which consists of the following: she takes two sheets of onionskin paper and puts a sheet of carbon paper between them and rolls them into a typewriter. She types a serial number at the top. Then she turns the crank on a device used in bingo parlors, consisting of a spherical cage containing twenty-five wooden balls, each with a letter printed on it (the letter J is not used). After spinning the cage the exact number of times specified in the procedure manual, she closes her eyes, reaches through a hatch in the cage, and removes a ball at random. She reads the letter off the ball and types it, then replaces the ball, closes the hatch, and repeats the process. From time to time, serious-looking men come into the room, exchange pleasantries with her, and take away the sheets that she has produced. These sheets end up in the possession of men like Waterhouse, and men in infinitely more desperate and dangerous circumstances, all over the world. They are called the one-time pads.
     He copies the letters from the one-time pad into the empty lines beneath his message:

T W O B Y   F O U R B   O A R D S   O N E H U   N D R E D
A T H O P   C O G N Q   D L T U I   C A P R H   M U L E P

When he is finished, two out of every three lines are occupied.
     Finally, he returns to the top of the page one last time and begins to consider the letters two at a time. The first letter in the message is T. The first letter from the one-time pad, directly below it in the same column, is A.
     A is the first letter in the alphabet and so Waterhouse, who has been doing this cipher stuff for much too long, thinks of it as being synonymous with the number 1. In the same way, T is equivalent to 19 if you are working in a J-less alphabet. Add 1 to 19 and you get 20, which is the letter U. So, in the first column beneath T and A, Waterhouse writes a U.
     The next vertical pair is W and T, or 22 and 19, which in normal arithmetic add up to 41, which has no letter equivalent; it’s too large. But it has been many years since Waterhouse did normal arithmetic. He has retrained his mind to work in modular arithmetic—specifically, modulo 25, which means that you divide everything by 25 and consider only the remainder. 41 divided by 25 is 1 with a remainder of 16. Throw away the 1 and the 16 translates into the letter Q, which is what Waterhouse writes in the second column. In the third column, O and H give 14 + 8 = 22 which is W. In the fourth, B and O give 2 + 14 = 16 which is Q. And in the fifth, Y and P give 24 + 15 which is 39. 39 divided by 25 is 1 with a remainder of 14. Or, as Waterhouse would phrase it, 39 modulo 25 equals 14. The letter for 14 is O. So the first code group looks like

T W O B Y 
A T H O P
U Q W Q O

     By adding the random sequence ATHOP onto the meaningful sequence TWOBY, Waterhouse has produced undecipherable gibberish. When he has enciphered the entire message in this way, he takes out a new page and copies out only the ciphertext—UQWQO and so on.
     The duke has a cast-iron telephone which he has put at Waterhouse’s disposal. Waterhouse heaves it out of its cradle, rings the operator, places a call across the island to the naval station, and gets through to a radio man. He reads the ciphertext message to him letter by letter. The radio man copies it down and informs Waterhouse that it will be transmitted forthwith.
     Very soon, Colonel Chattan, down in Bletchley Park, will receive a message that begins with UQWQO and goes on in that vein. Chattan possesses the other copy of Mrs. Tenney’s one-time pad. He will write out the ciphertext first, using every third line. Beneath the ciphertext he will copy in the text from the one-time pad:

U Q W Q O
A T H O P

     He will then perform a subtraction where Waterhouse performed an addition. U minus A means 20 minus 1 which equals 19 which gives the letter T. Q minus T means 16 minus 19 which equals -3, giving us 22 which is W. And so on. Having deciphered the whole message, he’ll get to work, and eventually two by fours one hundred count will show up at the Pier.