At a previous job, we had a new and fancy office. The light switches were state of the art. There was an on button, and a separate off button. When you pressed the on button, the lights would fade on. When you pressed the off button, they would fade off. In the cloud somewhere was two functions that presumably looked a bit like this: fun turnOnLamp() { while (!bright()) increaseBrightness(); } fun turnOffLamp() { while (!