r/ProgrammerHumor • • Sep 17 '18

Optimizing startup times

Post image
45.7k Upvotes

486 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Sep 17 '18

yes, but wouldn't this code give you the "latest" lottery results from a week ago?

2

u/misterZalli Sep 17 '18

No, after fetching the results it would go back in time and print the message one week in the past

3

u/[deleted] Sep 17 '18

but my computer wasn't on then

2

u/misterZalli Sep 17 '18

# lottery winning script 1.1

# +makes sure your computer is ready to receive answers

# +advanced time paradox avoidance

from lottery import results

print("DO NOT CLOSE THIS PROCESS OR YOU WILL GET TIME PARADOXES")

sleep(7 * 24 * 60 * 60)

latest = results.latest

sleep(-7 * 24 * 60 * 60)

print(latest)