« A middle-class white guy's view of diversity | Main | Decoding the body language of infants »

If caring for a newborn were a Pascal program

program Cycle;

var
   age_in_hours : longint;
   diaper_is_nasty : boolean;

(* Code for subroutines has been omitted. *)

begin

   age_in_hours := 0;

   repeat 
      CheckDiaper (diaper_is_nasty);
      if diaper_is_nasty then
         ChangeDiaper;
      FeedBaby;
      LetBabySleep;
      age_in_hours := age_in_hours + 3
   until age_in_hours > 720;

   writeln ('Congratulations, you've made it 
   through the first month.');

end.

Comments

Burp;

...(between FeedBaby and LetBabySleep)...

Come on. There's only about 720 hours in a month.

Thanks, Jay -- you're right. Another sign of sleep deprivation, I suppose. Anyway, I'll make the change now....

singLullaby;

where

favoriteLullaby := "Waltzing Mathida";

and

favoriteLullaby-->meterSet := "6/8";

...oops wrong OO & cultural language syntax...