r/shittyprogramming • • May 05 '19

Writing code to urinate

Post image
375 Upvotes

25 comments sorted by

View all comments

Show parent comment

10

u/TQuake May 06 '19

But he would piss any time there is any pee. So he'd just be trickling out piss all day.

21

u/sac_boy May 06 '19

No, he'd piss until his bladder/balls no longer contained the substring "pee", then he'd continue with his day until such time as he called this function again, regardless of how many pee substrings were in his balls/bladder

0

u/dshakir May 06 '19

Got ‘em!