Ultimate Noob Coding

Hm… maybe this story will help?

The Delle Triplets are the most feared food critics in the whole city. When a restaurant learns one of the triplets will be visiting, they brainstorm how best to impress her. They decide that a good first impression is most important, so they will have the triplet’s drink ready for her at her table. The only problem is–they don’t know which triplet will be visiting and each triplet has a different favorite. Amber likes tea, Beatrice prefers a strong, dark beer, and Claire will only drink a diet soda with lemon. Only once the triplet enters will the restaurant know. So they decide on a code. Once the hostess knows which triplet has come, she’ll flash 1, 2, or 3 fingers to a lurking waiter who will then rush to get the right drink on the table. 1 for Amber, 2 for Beatrice, and 3 for Claire.

When the triplet arrives, the hostess realizes it is Beatrice. She flashes a “2” to the lurking waiter. When she reaches the table, the strong, dark beer is waiting.

In multireplace, that last line would look something like:

(Note: earlier code would basically say "If the triplet who arrives is Beatrice, set ‘triplet’ to 2).

When she reaches the table, the @{triplet tea|strong, dark beer|diet coke with lemon} is waiting.


Alternate story:

A husband wants to impress his wife’s coworkers by telling them “hello” in their own language during a party. Her co-workers speak English, German, French, and Japanese. His wife promises to hold his arm or hand and will squeeze 1, 2, 3, or 4 times whenever they approach someone new so that no one sees her tell him which language to use. 1 for English, 2 for German, 3 for French, and 4 for Japanese. That night, as his wife guides him toward one of her coworkers, she squeezes his arm twice to signal the coworker’s native language is German.

“Honey,” she says, “This is Karl.”

“Guten Abend,” the husband replies.

In multireplace that last line would be:

(Note: the wife squeezing his arm twice set ‘coworker_language’ to 2)

“@{coworker_language Good Evening|Guten Abend|Bonsoir|Konbanwa}”, the husband replies.

…does that help at all?

2 Likes