while(true) { if (awake) { if (coffeePot.isEmpty) coffeePot.refill(); drink(coffeePot); } else { sleep(); } }
Walking on water and developing software from a specification are easy if both are frozen.