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
Well, the condition will never be true, as urine is stored in the bladder, not the balls. Not sure why the Body API would even implement that method on the Balls class.
85
u/skulgnome May 05 '19
Pee is, in fact, stored in the balls.
72
u/GrumpyPenguin May 05 '19
Hey, this sub is ShittyProgramming, not PissyProgramming.
28
u/Cutlesnap May 05 '19
Wait, why is this wrong? The code doesn't imply he's pissing all the time, just that he keeps doing it while there is piss in the
bladderballs.Just don't call whatever this line is in until you're in front of the toilet with your dick out.
9
u/scroogemcbutts May 05 '19
Going to want a guard clause to check if pants.down
3
u/jmac217 May 05 '19
That sounds like a tricky interview question, do you always piss?
3
u/Kirota May 10 '19
OSU, Dreese 3rd floor bathroom?
2
u/ironmagician May 05 '19
https://m.crazygames.com/game/dont-shit-your-pants
-21
u/qubedView May 05 '19
Well, the condition will never be true, as urine is stored in the bladder, not the balls. Not sure why the Body API would even implement that method on the Balls class.