Created
November 3, 2014 00:38
-
-
Save ckib16/8be71677026ed8c4a7d5 to your computer and use it in GitHub Desktop.
Toaster description
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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