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:
| Level | Who | Main question |
|---|---|---|
| Beginner | First year, learning projects | "Is my code readable?" |
| Production developer | Writes code for real users in a team | "Is my code safe, testable and maintainable?" |
| Senior | Responsible 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 once | By level |
|---|---|
| You remember the rules but do not understand why | Each rule arrived when the problem was in front of you |
| Heavy architecture on a small project | Practices that match the project's size |
| Overwhelmed and quit learning | A small win at every stage, and confidence grows |
| Buzzwords in interviews, nothing in real work | Real experience with every practice |
3. When to follow it
| Level | How important | Why |
|---|---|---|
| Learning project | The habits of the Clean Code section | Naming, small functions and early returns help in all code |
| Production code | Types, API, database, security and testing too | Now a mistake affects users and data |
| Senior level | Architecture, trade-offs and team workflow | A 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.
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.
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.
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? | Beginner | Production | Senior |
|---|---|---|---|
| Focus | The code is clean | The code is safe and layered | The whole system is consistent and secure |
| Question | Is 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)
| Practice | Chapter |
|---|---|
| Thinking | Core Philosophy |
| Names | Naming Things |
| Flow | Early Returns & Braces |
| Functions | Small Functions |
| Formatting | Breathing Room & Transient Locals |
| Constants | Constants & Magic Values |
| Comments | Self-Documenting Code |
| Secrets | Secrets Management |
| Git | Git Branches & Commits |
Stage 2: Production developer
| Practice | Chapter |
|---|---|
| Advanced clean code | Conditionals Without Ternaries, DRY Without Tight Coupling, Fail Fast |
| Types and layers | Strict Typing, Service Layer |
| API | Input Validation, Error Handling |
| Data | Database Design |
| Quality | Definition of Done, Testing Pyramid, Code Review |
Stage 3: Senior
| Practice | Chapter |
|---|---|
| Design | Dependency Injection, Following Existing Patterns, Fix Root Causes |
| Security | Authorization & Multi-Tenancy, OWASP |
| Data | Safe Migrations, Query Patterns |
| Shipping | Production Readiness, Performance: Measure First |
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
| Stage | Topics |
|---|---|
| Before | Introduction, Core Philosophy |
| After | Self-Documenting Code, then the Clean Code section in order |
Final quick revision
| Level | Focus |
|---|---|
| Beginner | Names, flow, small functions, constants, secrets, Git |
| Production | Types, service layer, validation, errors, tests, review |
| Senior | Architecture, authorization, migrations, performance, readiness |
| Order | See the problem first, and then the practice makes sense |