Please enable JavaScript to use CodeHS

Latte Glossary

Flashcards

Course:

Module:

Lesson:

Search:

lowerCamelCase General

`lowerCamelCase` is a naming convention where the first letter is lower case, and each subsequent start of a word is upper case.

lowerCamelCase

World General

A "world" or "Karel World" is a grid that karel lives in.

karel World

Karel General

Karel is a dog who listens to your commands.

Karel

Command Java

A command is an instruction you can give to Karel.

Karel Documentation Java

Documentation for all Karel Commands and Syntax

Curly Bracket General

An open curly bracket is { and a close curly bracket is }

Curly Bracket

The run method Java

The run method is where a Java program begins.

Indentation General

Indentation is the visual structure of how your code is laid out. It uses tabs to organize code into a hierarchy.

Parentheses General

( and )

Parentheses

Method Java

A method is a way to teach the computer a new command

Define a method Java

Defining a method means to teach the computer a new command and explain what it should do when receiving that command.

Calling a method Java

Calling a method actually gives the command, so the computer will run the code for that method.

Method body Java

The part of the method that contains the commands

Decomposition General

Decomposition is breaking your program into smaller parts.

Decomposition

Break Down (Decompose) Java

Breaking down (decomposing) your code is splitting it up into several smaller, simpler methods

Read Like a Story Java

Programs that “Read like a story” have good decomposition and make the code easy to follow.

Top Down Design Java

Top down design is a method for breaking a problem down into smaller parts.

Programming Style General

The way your code is written is the style. It covers the aspects of the code that goes beyond whether or not it just works.

Programming Style

Comment Java

A message in your code that explains what is going on.

Precondition Java

Assumptions we make about what must be true before a method is called.

Postcondition Java

What should be true after a method is called

SuperKarel General

SuperKarel is like Karel but already knows how to turnRight() and turnAround()

SuperKarel

Loop General

A loop is a way to repeat code in your program.

Loop

Iterate General

A single run through the instructions contained a loop

Iterate

Increment General

To add to or increase

Increment

For Loop Java

A for loop lets us repeat code a **fixed number of times**.

Counter Java

A variable used to count the number of times an action has been performed.

DRY Principle Java

Otherwise known as Don’t Repeat Yourself, this principle is designed to help eliminate repeated code and reduce the complexity of a solution

While Loop General

Lets us repeat code as long as something is true.

While Loop

Condition General

A condition is code that you put inside an if statement or while-loop.

Condition

Control Structure General

A control structure lets us change the flow of the code.

Control Structure loops if statements

Fencepost Problem General

A problem when using a while loop where you forget one action at the beginning or the end.

Fencepost Problem

If Statement General

An if statement lets you ask a question to the program and only run code if the answer is true.

If Statement

If Else Statement General

Control structure that lets us run either one section of code or another depending on a test.

If Else Statement

boolean Java

`boolean` is a Java type that can either be true or false

Pseudocode General

Pseudocode is a brief explanation of code in plain English.

Pseudocode

Edge Case General

An edge case is a problem in your code that only occurs in extreme situations.

Edge Case