Central Market is Win: and Causes Coding

Aug 04, 2008 21:04

A recipe:


Bread
Mustard
Pickles
Barbecue Sauce
Avocado
Burger Patty
Lettuce
Tomato
Mayo
+ Bread
----------------
Delicious

MASSIVE EDIT: My girlfriend has demanded that I express this sentiment as programs. These assume an enumerated type of foods.

Haskell: "
delicious = sum $ map fromCondimentEnum
[Bread, Mustard, Pickles, BarbecueSauce, Avocado, BurgerPatty, Lettuce, Tomato, Mayo, Bread]
"

C++: "
int burgerArray = [Bread, Mustard, Pickles, BarbecueSauce, Avocado,
BurgerPatty, Lettuce, Tomato, Mayo, Bread, NullFood]
int delicious = 0;
for (int i = 0; burgerArray[i] <> NullFood; i++) {
delicious += burgerArray[i];
}
"

LISP: "
(setq delicious (+ (Bread Mustard Pickles BarbecueSauce
BurgerPatty Lettuce Tomato Mayo Bread)))

Python: "
delicious = sum([Bread, Mustard, Pickles, BarbecueSauce, Avocado,
BurgerPatty, Lettuce, Tomato, Mayo, Bread])
"

Or maybe no one cares about the deliciousness. But it has made me happy. I haven't had a burger this good in a long time.
Previous post Next post
Up