Day 22: Learning a New Codebase

Weeks 4 and 5: three paragraphs, a full page Β· about 20 minutes

Today: Warm up: review your flashcards (2 min) 1 Read2 Spell3 Say4 Words

1. Read 5 minutes

Starting on a new codebase can feel like being dropped in a foreign city with no map. Thousands of files, strange names, and nobody has time to explain everything. The trick is to stop trying to understand it all.

Pick one real user action, like logging in, and follow it from start to end. Find where the request enters the system, which functions it passes through, and where the data is stored. Draw a small picture as you go. Boxes and arrows are enough. After one path, the names start to make sense, and the second path is much faster.

Also, read the tests. Tests show how the code is meant to be used, often more clearly than the comments. And keep a list of questions. Ask them in one batch to a teammate, instead of interrupting them ten times a day.

How. Read one sentence. Look up. Say it in your own words. Then go on. Keys: β†’ next, ← back, Esc to show all.

Check yourself

What should you follow from start to end?

One real user action, like logging in.

Why read the tests?

They show how the code is meant to be used.

2. Spell 5 minutes

✏️ The ough family

ough has many sounds. Learn these six as a set.

Watch out. though (THOH), through (THROO), thought (THAWT), tough (TUF), thorough (THUR-oh).

Test yourself. The words hide. You hear a word, then type it.

3. Say 5 minutes

πŸ‘„ ough: one spelling, many sounds

Use the speaker button on each word. Say it five times. Do not guess from the spelling.

Words

Hear the difference

How. Press πŸ”Š, then say it 3 times. Record yourself on your phone and compare.

4. New words 5 minutes

Say each word out loud. Then make your own sentence with it.

codebase

say: KOHD-bays

all the code for a product

β€œThe codebase has ten thousand files.”

foreign

say: FOR-in

from another country

β€œIt felt like a foreign city.”

trick

say: TRIK

a clever way to do something

β€œThe trick is to start small.”

path

say: PATH

a way from one place to another

β€œFollow the path of one request.”

batch

say: BACH

a group of things handled together

β€œAsk your questions in one batch.”

Review today's flashcards