Swift Playground Flashcards
Commands
Code that tells an application to perform a specific action. Commands have no spaces between words and always end with parentheses.
Bug
An error in code that prevents an application from running as expected.
Debugging
To find and fix errors in code that prevents an application from running correctly.
Functions
A named set of commands that can be run whenever needed.
Allows you to name a set of commands, which you can then run any time you want.
func tieMyShoe() { Loop () Swoop () Pull () }
Commands/behavior live inside functions.
Coding
The act of composing commands, code structures, and algorithms to create a computer program.
Composition
The process of combining small parts of a program to solve a larger problem.
Define
To provide the explicit value or behavior of a Newley created piece of code, such as a function, variable, or custom type. For example, you define a function by providing a set of commands within the function to tell it what to do.
Enter a set up commands between the { and } curly braces to give its behavior and define a functions behavior.
Call
To tell a program to run a function. For example, calling the moveForward( ) function in your code tells the program to perform the actions defined in that function.
Pattern
A repeating set of circumstances or data.
Decomposition
The process of breaking a large problem into smaller, more manageable pieces.