these little notes help people understand the code when they read it later. They are ignored by the playground or app, so they don't affect how your code is run.
Back
Constant
Front
An identifier that is immutable
Back
Declaration
Front
Introduces a new name or construct into your program
Back
API:
Front
Any code that performs a specific set of tasks has to provide a way for developers to use it.
Back
Identifier
Front
Refers to a value, function, type or any other abstraction. Also, formal word for a name in code
Back
Side effect
Front
any work done by a function that doesn't help create a return value
Back
Escape character:
Front
You can use this \ in a string to tell Swift that is should treat what comes next as special
Back
Unicode:
Front
defines a way to represent almost any character from any language in a consistent way
Back
Method:
Front
a function defined inside a type
Back
Playground
Front
An environment in Xcode where you can play and experiment with code-and see instant results-without anything getting in your way.
Back
Default:
Front
is selected when no other option is available
Back
Results Sidebar
Front
shows information about each line of code that produces an output value
Back
Type annotation
Front
You use this when Swift needs more information about the type of an instance or argument
Back
Property:
Front
a piece of data held by a struc, class, or enum
Back
Variable:
Front
an identifier that is mutable
Back
Algorithm
Front
a series of steps that perform a task
Back
Remainder operator %:
Front
returns the amount left over after dividing one number by another.
Back
Integer
Front
a whole number with no fractions or decimals. can be a positive number, a negative number, or zero
Back
Constant:
Front
is an identifier that is immutable
Back
Case:
Front
capitalization style of a word or phrase
Back
Error
Front
General term for a problem with code
Back
Mutable:
Front
can be updated or changed
Back
Print:
Front
tells a swift program to log a message to the console.
Back
Assignment
Front
To give a name or value when you first declare a name or when you update a variable's value
Back
Comment out
Front
Adding two slashes (//) to the beginning of its line. This line of code will be left out of the running program.
Back
Type
Front
a named grouping of properties and methods of a kind of data.
Back
Instance:
Front
a value of a particular type
Back
Index:
Front
the numbered position of an item in an ordered collection
Back
Quick Look Button:
Front
if you move your cursor over a result in a playgrounds result side bar, you'll see an icon that looks like a small eye. It will display the results in the results sidebar especially for instances of images, collars, and views,
Back
Initializer:
Front
sets up an instance so it's ready to be used
Back
Conditional statement:
Front
a traffic controller that causes different code to run in different situations
Back
Boolean:
Front
a type that only has two possible values:true and false
Back
Parameter
Front
to work with an input value or values
Back
String:
Front
in most programming languages, text values are called this
Back
Function:
Front
combine detailed steps into a single block of code that can be used again and again
Back
Keyword
Front
Terms that have special meaning in the Swift programming language and can't be used for any other purposes
Back
Console:
Front
a message center to show details about the way a program is running.
Back
Argument label
Front
introduces the argument passed into the function
Back
Argument
Front
used to give an input value, or values, to a function
Back
Array:
Front
you use this to hold a list of items of the same type keeping them in order
Back
Framework
Front
a group of types and capabilities
Back
String interpolation:
Front
when you'd like to put the value of a constant or variable in the middle of a string literal.
Back
Type inference
Front
to work out somethings type from the available information, even when the name of the type isn't explicitly put into words
Back
Log:
Front
a record of information about a program as it runs so the programmer can check the outcome of a step even after the program has progressed several billion steps past the one in question
Back
Escape sequence:
Front
combines an escape character with another character or characters to achieve a new effect
Back
Return
Front
when it gives an output value back to its caller
Back
Comparison operators:
Front
a symbol in a comparison statement when you describe a relationship between two things
Back
Character:
Front
a single letter, number, punctuation mark, symbol, or blank space.
Back
Section 2
(11 cards)
Attributes inspector
Front
Use this to find out and update information about a selected object in a storyboard.
Back
Call a Function
Front
when you type a function's name so the program will run the steps contained in the function's implementation.
Back
Abstraction
Front
groups thing together, so you can think of the group as one single thing.
Back
Image View
Front
displays a picture file in a user interface
Back
Struct:
Front
defining this is one way to create your own custom data type in code
Back
Project navigator
Front
one of the navigators on the left of the Xcode user interface. It lists all the files that make up your app in Xcode.
Back
Storyboard
Front
A user interface file that tells your app where to display information on the screen.
Back
Loop:
Front
runs the same code for each item in a collection
Back
Literal:
Front
a value typed or inserted directly into code with no initializers.
Back
Simulator
Front
this gives you an idea of how your app would look and behave if it were running on different devices.
Back
Decomposition
Front
breaks down a single long list into multiple smaller lists, giving each small list its own name.