Comic #2599: 2012-06-28
Description
Here’s a detailed description of the comic:
Panel 1: A light pink background with text at the top that reads: "A 'while loop' is a computing term that describes a loop that keeps cycling while a condition is met." Below this is a flowchart showing:
- A diamond labeled "CONDITION" at the top center.
- Arrows pointing left to "TRUE" and right to "FALSE."
- Below "TRUE," there's a rectangle labeled "STATEMENT."
Panel 2: A bright orange background with the text, "THEY'RE USEFUL FOR REPEATED OPERATIONS" at the top. Beneath it is code in a black rectangle:
- "loneliness = 1"
- "while loneliness < 14"
- "print 'AAAAAH!'"
- "loneliness = loneliness + 1"
- Below this code, there are several lines each displaying "AAAAAH!" (14 times total).
Panel 3: A red background with the text, "THEY'RE ALSO A GOOD DESCRIPTION OF A LOT OF PROGRAMMERS." Below this, there are two figures in a comic style:
- A character with glasses holding a bouquet of flowers, asking: "DO YOU LOVE ME NOW?"
- The second character, a woman with a determined expression, replies: "I TOLD YOU, NO!"
- Below her dialogue, she says, "I'LL BE BACK TOMORROW."
This comic humorously explains the concept of a "while loop" in programming, illustrating it with a playful scenario about loneliness and rejection.