← Back to course
Code Crew G3 / Week 08 / Thursday
4/6
Week 08 Β· Abstraction

Thursday

// Big idea, small details

Thursday: Shorthand Code

Rocket types fast. He names his boxes a, b, and q. Later he cannot remember what q holds. "Oops," he says.

Raven asks, "What do you notice when names are too short?" Rocket nods. "They turn into mystery code!"

Nova says, "Some shorthand is known by everyone. The letter i often means which one we are on." Let's help them match shorthand to meanings.

Programmers use SHORT names a lot. Match each shorthand to its long meaning.

ShorthandLong meaning
i( ) index: which one we're on
temp( ) temporary
x, y( ) coordinates
max( ) the biggest
min( ) the smallest
str( ) string of letters
num( ) number
Careful!
Short names save typing, but TOO short = mystery code.
Pick names that help your future self read the code.

Picture It

Draw a SYMBOL for each idea below. Keep it simple: a 3-second drawing.

Save
Loop
Help
Done
β—‡ PARTNER MOVE
Trade pages. Can your partner GUESS what each symbol means?
If yes, great abstraction. If no, too vague.

Quick Check

max means the ____ one.
min means the ____ one.
num is short for ____.
← Wednesday