Skip to content
Getting StartedChapter 3 / 57Beginner5 min read

When to Learn What

A roadmap of junior vs senior developer practices. What a beginner, a production developer and a senior should focus on, and in what order to learn.

On this page

1. What is this practice?

This course has 57 chapters. If a beginner reads about migrations, multi-tenancy and supply chain security in the first week, nothing will stick. This chapter is a roadmap: which practice, and when.

There are three levels:

LevelWhoMain question
BeginnerFirst year, learning projects"Is my code readable?"
Production developerWrites code for real users in a team"Is my code safe, testable and maintainable?"
SeniorResponsible for design and review"Are the system and the team heading in the right direction?"

2. Why does it matter?

Every practice solves a problem. Until you have seen that problem, the practice just feels like useless weight. That is why the order matters.

Everything at onceBy level
You remember the rules but do not understand whyEach rule arrived when the problem was in front of you
Heavy architecture on a small projectPractices that match the project's size
Overwhelmed and quit learningA small win at every stage, and confidence grows
Buzzwords in interviews, nothing in real workReal experience with every practice

3. When to follow it

LevelHow importantWhy
Learning projectThe habits of the Clean Code sectionNaming, small functions and early returns help in all code
Production codeTypes, API, database, security and testing tooNow a mistake affects users and data
Senior levelArchitecture, trade-offs and team workflowA senior builds the path for others

4. Bad vs good code

How one small task looks at three levels. Task: load a user by id.

Focus at beginner level: names, braces, early return.

ts
async function load(id: string) {
  const user = await db.user.findUnique({ where: { id } });

  if (!user) {
    throw new Error(`User ${id} not found`);
  }

  return user;
}

Focus at production level: input validation, a typed result, logic in a service.

ts
export async function GET(request: Request, ctx: RouteContext<"/api/users/[id]">) {
  const { id } = userParamsSchema.parse(await ctx.params);

  return Response.json(await users.find(id));
}

Focus at senior level: authorization, tenant scoping, and making sure every handler in the team has this same shape.

ts
export async function find(caller: Caller, id: string) {
  const user = await db.user.findFirst({ where: { id, orgId: caller.orgId } });

  if (!user) {
    throw new NotFoundError("user");
  }

  return user;
}
What is the difference?BeginnerProductionSenior
FocusThe code is cleanThe code is safe and layeredThe whole system is consistent and secure
QuestionIs the name right?Was the input checked?Could a user from another org leak?

5. How to apply it

Stage 1: Beginner (the first 3 to 6 months)

Stage 2: Production developer

Stage 3: Senior

Roadmap
Clean Code habits
Types and the service layer
API, database and security basics
Testing and code review
Architecture, tenancy and production readiness

6. Exceptions and common mistakes

This roadmap is a guide, not a prison. If your very first job needs you to write migrations, read that chapter first. The needs of the work can change the order.

Mistake: Reading senior topics first because they look impressive

Why? Without a foundation, architecture patterns are just names, and they make a small project heavy.

Better: Make naming, functions and flow solid first. Architecture makes sense once you have seen messy code yourself.

Mistake: Never leaving the beginner level

Why? Clean code alone is not enough, and code without security, validation and tests is dangerous in production.

Better: Start Stage 2 as soon as you join your first team.

Mistake: Thinking being senior means applying every rule strictly

Why? A senior's real job is understanding trade-offs, and blind strictness slows the team down.

Better: Explain the reason for each rule, and allow an exception where the reason does not apply.

7. What to learn before and after

StageTopics
BeforeIntroduction, Core Philosophy
AfterSelf-Documenting Code, then the Clean Code section in order

Final quick revision

LevelFocus
BeginnerNames, flow, small functions, constants, secrets, Git
ProductionTypes, service layer, validation, errors, tests, review
SeniorArchitecture, authorization, migrations, performance, readiness
OrderSee the problem first, and then the practice makes sense