Jessica Jackson Flashcards
Learning how to code
Break Down
Breaking down (decomposing) your code is splitting it into more functions.
Read like a Story
Programs that “Read like a Story” have good decomposition and make the code easy to follow.
Start Function
This is the function that is called when you click run.
Decomposition
Decomposition is breaking your program into smaller parts.
Top Down Design
Top down design in a method for breaking out program down to smaller parts
Algorithm
An Algorithm is a set of steps or rules to follow to solve a particular problem.
World
A “world” or “Karel World” is a grid that Karel lives in
Karel
Karel is a dog that listens to your commands
Command
A command is an instruction you give to Karel.
Lower Camel Case
A naming convention where the first letter is lower case and each consequence start of a word is uppercase
Function
Defining a function means to teach the computer a new command and explain what it should do when receiving that command.
Calling a Function
Calling a function actually gives the command, so the computer will run the code for that function.
Indentation What is a curly bracket?-An open curly bracket is { and a close curly bracket is }
What are parentheses-( and )
Indentation is the visual structure of how your code is laid out. It uses tabs to organize code into an hierarchy
Curly Bracket What are parentheses-( and )
An open curly bracket is { and a close curly bracket is }
Parentheses
Example: ( and )