Skip to content

Instantly share code, notes, and snippets.

@ckib16
Created November 3, 2014 00:38
Show Gist options
  • Save ckib16/8be71677026ed8c4a7d5 to your computer and use it in GitHub Desktop.
Save ckib16/8be71677026ed8c4a7d5 to your computer and use it in GitHub Desktop.
Toaster description
In just a few sentences, the message should describe a toaster (the kitchen appliance) in the terminology of a programming method.
What is/are its expected argument(s)?
- The toaster method should accept any toastable food as arguments (bread, bagle, pop-tarts)
What does it return?
- The Toaster method should return it's arguments that have been toasted, or heated until crispy but not burnt.
What are its side effects?
- Side effects include electricity used, heat produced, and time taken
What would happen if you fed it an unexpected argument, like a fork?
- Toaster method may malfunction (short circuit, get stuck for longer than desired time, turn off)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment