Suppose there is strong reason for you to wake up at 7h00.
Default solution is to set alarm clock at appropriate time.
This hack use Inversion of Control (IoC) principle to achieve same effect when,
instead to wake up at 7h00 you go to sleep at 23h00. Following the idea alarm should be set to 23h00 (day before). After 8 hours of sleep you up.
Hack will probably fail first time when sleep debit is big, but in the long run this it's preferable to default solution.
Novelty of the approach can be contrasted in two positive intentions:
The early bird catches the worm.
and
It is better to oversleep than to undereat.
This hack isn't without BUG. It missing crucial part - Asynchronous Completion Token. When you wake up you need to recall context in which you set alarm and it is not implicitly true if reason to wake up every time different.
No comments:
Post a Comment