Project 7 - Chef Program

For the past several weeks, we've looked at procedurality as the principle expressive form of computation. But our focus has been on the output of Does code mean more than the programs it runs? Is there a value to code itself?

For this last individual project, you will write a program in the esoteric programming language Chef, designed by David Morgan-Mar. Chef is based on the manipulation of data values in stacks. Variables are named after foods, stacks are called mixing bowls, and instructions are common cooking manipulations. The program itself reads like a recipe (thus the name Chef).

Rules for your completed program:

(1) It must compile and run. It need not be the most meaningful program, but it must execute and do something coherent

(2) It must read like a coherent recipe. That is, the source code should be as readable as the executable code, and it should make sense as a recipe.

(3) If you want an 'A', your recipe must also be coherent enough to be prepared in the real world. This is harder than it sounds.

Extra credit (5 points) for anyone who brings in a version of their Chef code for us to eat in class.


My receipe is called Nachos Al Getty and is a tribute to one of our most famous presidents. My drive for creating something of this nature stemed from watching Jeopardy! on the television and 'Presidents' being one of the catagories. That and I couldn't think of any witty banter to have the program spit out.

I have provided the source code here or you can download the file at the bottom.

Nachos Al Getty.

Ingredients.
102 g cheese
111 chips
117 g meat of choice
114 g sour cream
32 olives
115 ml salsa
99 g guacamole
1 jalapeno
4 ml pepper

Method.
Put olives into the mixing bowl. Add jalapeno. Put cheese into the mixing bowl. Remove jalapeno from the mixing bowl. Put sour cream into the mixing bowl. Put chips into the mixing bowl. Put guacamole into the mixing bowl. Put chips into the mixing bowl. Pound the pepper. Add jalapeno. Beat pepper until pounded. Put olives into the mixing bowl. Put sour cream into the mixing bowl. Put meat of choice into the mixing bowl. Put chips into the mixing bowl. Put cheese into the mixing bowl. Liquify contents of the mixing bowl. Pour contents of the mixing bowl into the baking dish.

Serves 1.

Output: four score!

Download the file


Home | Top