195
dfox
8y

<?php

wakeUp();
goToWedding();

while (atWedding() && bored()) {
browseDevrant();
}

goToTrainStation();
sleep(2700); // got there 45 mins early

while (trainIsMoving()) {
try {
workOnDevrant();
} catch (ProcrastinationException $e) {
// got distracted by devRant
}
}

goHome();

while (unrespondedStickerRequests()) {
sendResponse();
}

goToSleep();

?>

Comments
  • 37
    unrespondedStickerRequests while loop executed 150 times there!
  • 2
    Possible sticker solution: Hook devRant up to a SaaS CRM with a good API, then give restricted credentials to someone on Peopleperhour?

    Ofc that's obvs easier to type than do :)
  • 1
    @dfox is there any resolve to the phantom notification issue yet?
  • 0
    @developerTom not yet. I know what's wrong but haven't had a chance to fix it yet since it's not a simple problem/fix.
  • 3
    This code is procedural AF
  • 4
    so when you are at the wedding and at some point you actually have fun then you leave for the trainstation immediately ☺
  • 2
    @dfox couldn't you make a form in-app with proper address inputs, pack all envelopes in bulk, and write a little Python to print all postage labels every morning - all automated?
  • 3
    Fatal Error: Unexpected SendResponses() on line 24
  • 2
    @dfox, are you sure you are handling the exception properly?
  • 2
    This is awesome
  • 3
    ProcrastinationException 😂😂😂😂

    I've seen this in my own stack trace.
Add Comment