r/badcode • • Dec 03 '19

python So many things wrong...

Post image
707 Upvotes

106 comments sorted by

View all comments

Show parent comments

47

u/archpawn Dec 03 '19

But they could have just used

while True:
    print('69')

33

u/kkjdroid Dec 04 '19

But this way, it eventually runs you out of RAM.

14

u/cutreaper Dec 04 '19

Thats a long eventually though lmao. Also TIL python doesnt have int over/underflow. But to take up any significant portion of RAM by decrementing that will probably take longer than the heat death of the universe.

7

u/the_monkey_of_lies Dec 04 '19

I can totally see someone working on this machine on the post heat death universe, in a government organization that hasn't upgraded their system for billions of years and suddenly running out of RAM for no apparent reason.