When to Learn What
Junior vs senior developer practices ka roadmap. Beginner, production developer aur senior kis practice par focus karein, aur kis order mein seekhein.
On this page
1. Yeh practice kya hai?
Is course mein 57 chapters hain. Beginner agar pehle hafte mein migrations, multi-tenancy aur supply chain security parhe to kuch bhi yaad nahi rahega. Yeh chapter ek roadmap hai: kaunsi practice kab.
Teen levels hain:
| Level | Kaun | Main sawal |
|---|---|---|
| Beginner | Pehla saal, learning projects | "Kya mera code parhne layak hai?" |
| Production developer | Team mein real users ke liye code | "Kya mera code safe, testable aur maintainable hai?" |
| Senior | Design aur review ka zimmedar | "Kya system aur team sahi direction mein hain?" |
2. Kyun zaroori hai?
Har practice ek problem solve karti hai. Jab tak woh problem aap ne dekhi nahi, practice bekaar ka bojh lagti hai. Isi liye order ahem hai.
| Sab kuch ek saath | Level ke hisaab se |
|---|---|
| Rules yaad, lekin wajah samajh nahi aayi | Har rule us waqt aaya jab problem saamne thi |
| Chhote project par heavy architecture | Project ke size ke mutabiq practices |
| Overwhelm ho kar seekhna chhor diya | Har stage par chhoti jeet, confidence barhta hai |
| Interview mein buzzwords, kaam mein kuch nahi | Har practice ka asli tajurba |
3. Kab follow karein?
| Level | Kitna zaroori | Kyun |
|---|---|---|
| Learning project | Clean Code section ki aadat | Naming, chhote functions aur early returns har code mein kaam aate hain |
| Production code | Types, API, database, security aur testing bhi | Ab galti ka asar users aur data par hai |
| Senior level | Architecture, trade-offs aur team workflow | Senior doosron ke liye raasta banata hai |
4. Bura vs acha code
Ek hi chhota kaam teen levels par kaisa dikhta hai. Task: user ko id se load karna.
Beginner level par focus: naam, 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;
}Production level par focus: input validation, typed result, logic service mein.
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));
}Senior level par focus: authorization, tenant scoping, aur yeh ke team ka har handler isi shape mein ho.
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;
}| Farq kya hai? | Beginner | Production | Senior |
|---|---|---|---|
| Focus | Code saaf ho | Code safe aur layered ho | Poora system consistent aur secure ho |
| Sawal | Naam sahi hai? | Input check hua? | Kya doosre org ka user leak ho sakta hai? |
5. Kaise apply karein?
Stage 1: Beginner (pehle 3 se 6 mahine)
| Practice | Chapter |
|---|---|
| Soch | Core Philosophy |
| Naam | 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 |
|---|---|
| Clean code advanced | Conditionals Without Ternaries, DRY Without Tight Coupling, Fail Fast |
| Types aur 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 aur common mistakes
Yeh roadmap guide hai, jail nahi. Agar aapki pehli job mein hi migrations likhni hain to wahi chapter pehle parhein. Kaam ki zaroorat order ko badal sakti hai.
Galati: Senior topics pehle parhna kyunki woh impressive lagte hain
Why? Bunyad ke bina architecture patterns sirf naam reh jate hain aur chhote project ko bhaari bana dete hain.
Behtar: Pehle naming, functions aur flow pakka karein. Architecture tab samajh aata hai jab ganda code khud dekh liya ho.
Galati: Beginner level ko kabhi chhorna hi nahi
Why? Sirf saaf code kaafi nahi, production mein security, validation aur tests ke bina code khatarnak hai.
Behtar: Pehli team join karte hi Stage 2 shuru karein.
Galati: Senior hone ka matlab har rule sakhti se lagana samajhna
Why? Senior ka asli kaam trade-off samajhna hai, andhi sakhti team ko slow kar deti hai.
Behtar: Har rule ki wajah batayein aur jahan wajah lagu na ho wahan exception allow karein.
7. Pehle aur baad mein kya seekhein?
| Stage | Topics |
|---|---|
| Pehle | Introduction, Core Philosophy |
| Baad mein | Self-Documenting Code, phir Clean Code section order mein |
Final quick revision
| Level | Focus |
|---|---|
| Beginner | Naam, flow, chhote functions, constants, secrets, Git |
| Production | Types, service layer, validation, errors, tests, review |
| Senior | Architecture, authorization, migrations, performance, readiness |
| Order | Problem pehle dekho, practice phir samajh aati hai |