only programmers / developers can understand ...

xcodes

Great Supremacy Member
Joined
Dec 15, 2013
Messages
63,891
Reaction score
29,167
this joke ... :s13:


whats-wrong-with-asking-for-eggs-peter-v0-gsesxu1txxvg1.jpeg




:s13::s13::s13::s13::s13::s13:
 

Orphan

Master Member
Joined
Nov 26, 2018
Messages
4,394
Reaction score
2,927
Maybe moi ish slow. Dont get it :(
I can explain, but I warn you first, explain means it won't be as funny leow...



In programming, the keyword "while" is 1 of the ways used to repeat a selected section of code. Generally, we want a way for it to stop repeating. Otherwise it turns into an infinite loop issue.

In the joke,
1) man is in supermart
2) based on that condition, he should get eggs
3) after getting eggs, he is still in the supermart, so repeat from step 1

The poor guy can never leave the supermart :ROFLMAO:
 

Eost002

Arch-Supremacy Member
Joined
Jan 6, 2021
Messages
12,243
Reaction score
7,557
I can explain, but I warn you first, explain means it won't be as funny leow...



In programming, the keyword "while" is 1 of the ways used to repeat a selected section of code. Generally, we want a way for it to stop repeating. Otherwise it turns into an infinite loop issue.

In the joke,
1) man is in supermart
2) based on that condition, he should get eggs
3) after getting eggs, he is still in the supermart, so repeat from step 1

The poor guy can never leave the supermart :ROFLMAO:
Moi also developer. The wording ish not clearly phrased for moi slow brain. :( My brain auto add return statement after getting eggs.
 

randyap

Arch-Supremacy Member
Joined
Nov 30, 2002
Messages
17,353
Reaction score
9,892
To debug her code, add the following:

if ( purchased carton of eggs >=1 || wallet $< price of 1 carton of eggs) break;
 

anchoraz

Master Member
Joined
Dec 20, 2023
Messages
3,240
Reaction score
1,567
Usually main function return a 1 once finish executing. Meaning if get eggs mean null or 0.

So the function cannot end. Stuck inside the main function due to the return is 0.
 

Prime 13

High Supremacy Member
Joined
Feb 22, 2014
Messages
28,652
Reaction score
12,251
if(single || divorced)
{
disregard_wife_demand();
enjoy_life();
}
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top