Vort Posted January 23, 2023 Report Posted January 23, 2023 A programmer was going to the store. His wife said, "While you're at the store, grab a gallon of milk." He never came home. askandanswer, Just_A_Guy, MrShorty and 3 others 1 5 Quote
MarginOfError Posted January 23, 2023 Report Posted January 23, 2023 Seems like it'd be easy enough to come home by just dropping the gallon of milk as soon as he exits the store. But the milk will never make it home. Vort and Carborendum 1 1 Quote
Carborendum Posted January 23, 2023 Report Posted January 23, 2023 16 minutes ago, MarginOfError said: Seems like it'd be easy enough to come home by just dropping the gallon of milk as soon as he exits the store. But the milk will never make it home. I finally get it. I don't know why the OP didn't make sense to me. But I didn't spend a lot of time on it. Thanks for the clarification. Vort and The Folk Prophet 2 Quote
zil2 Posted January 23, 2023 Report Posted January 23, 2023 Apparently some people have never written an infinite loop. The poor programmer had no way out of his while loop. Of course, I'm having a hard time deciding whether he grabbed one gallon and just stood there, or repeatedly grabbed and released the same gallon (seems wrong), or kept grabbing gallons - one per iteration of the loop - and what he did when he could grab no more. Carborendum, NeuroTypical and Vort 3 Quote
mikbone Posted January 23, 2023 Report Posted January 23, 2023 And that’s how close we are to AI. Quote
popatr Posted February 2, 2023 Report Posted February 2, 2023 I think the real point of this joke is that she didn't tell him to come home; when classically programming a computer, the computer does only what you instruct and nothing more Vort 1 Quote
Vort Posted February 2, 2023 Author Report Posted February 2, 2023 2 hours ago, popatr said: I think the real point of this joke is that she didn't tell him to come home; when classically programming a computer, the computer does only what you instruct and nothing more while(true) { // You can never get out } The Folk Prophet and zil2 2 Quote
The Folk Prophet Posted February 2, 2023 Report Posted February 2, 2023 9 hours ago, Vort said: while(true) { // You can never get out } I didn't get the original joke until you posted this. Then I went back and read it and...haha. Quote
The Folk Prophet Posted February 2, 2023 Report Posted February 2, 2023 On a side note: I've been a professional programmer for nigh unto 10 years now. I may not be a particularly expert programmer...but I'm pretty decent I guess. But I have never, ever, in my entire career, EVER, written a while loop. Quote
Carborendum Posted February 2, 2023 Report Posted February 2, 2023 3 minutes ago, The Folk Prophet said: On a side note: I've been a professional programmer for nigh unto 10 years now. I may not be a particularly expert programmer...but I'm pretty decent I guess. But I have never, ever, in my entire career, EVER, written a while loop. At least I had the excuse of not having done any programming in the last 30 years. And, like you, I don't think I ever used a while command. Quote
Vort Posted February 2, 2023 Author Report Posted February 2, 2023 37 minutes ago, The Folk Prophet said: 9 hours ago, Vort said: while(true) { // You can never get out } I didn't get the original joke until you posted this. Then I went back and read it and...haha. If it makes you feel any better, my daughter told this joke on our family call last Sunday. Everyone laughed but me. My sons had to point out the word "while" in the joke before I understood. At least I groaned appropriately when I got it. The Folk Prophet 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.