Skip to content
Getting StartedChapter 1 / 57Beginner6 min read

Introduction

What software development best practices are, why teams create house rules, and how this course is organized. A simple start for beginners.

On this page

1. What is this practice?

Best practices are not laws. They are distilled experience: "we did this, it caused a bug, so now we do it this way."

Every team picks the ones it likes and turns them into house rules. Some rules are the same everywhere (do not keep secrets in code), and some are just one team's preference (never write a ternary). This course covers both and says clearly which rule is universal and which is an opinion.

2. Why does it matter?

A solo developer remembers their own code. With 5 people, 50 files and 6 months later, nobody remembers anything. At that point the code has to explain itself.

Without shared rulesWith shared house rules
Every file has a different style, so reading takes timeEvery file has the same shape, so it is clear at a glance
Code review argues about styleReview focuses on real logic and bugs
A new developer is confused for weeksA new developer reads the rules and contributes quickly
One bug gets fixed differently in different filesFixed in one place, effective everywhere
Hidden errors in productionErrors show up early and clearly

The real benefit is not speed, it is fewer surprises. Code that is predictable is cheaper to debug and cheaper to add features to.

3. When to follow it

You will find this table in every chapter. Once you understand what it means, you can decide for each chapter yourself.

LevelHow importantWhy
Learning projectTo build the habit, not strictlyThe focus is on understanding concepts, but good habits are cheapest to build now
Production codeFollow the team's rules fullyOther people will read the code and users will be affected
Senior levelUnderstand the reason and decide the trade-offA senior makes the rules, breaks them and teaches them to others

"Learning project" means a tutorial, a practice app or a portfolio. "Production code" means code that reaches real users and is maintained by a team. "Senior level" means you do not just follow the rule, you explain when and why.

4. Bad vs good code

In every chapter of the course, bad code comes first, then good code, then a table of differences. Here is a small preview:

ts
function calc(u: any) {
  if (u.p > 3) return u.t * 0.9;
  return u.t;
}
ts
const LOYAL_CUSTOMER_MIN_ORDERS = 3;
const LOYALTY_DISCOUNT = 0.9;

function price(order: Order) {
  if (order.customer.pastOrders <= LOYAL_CUSTOMER_MIN_ORDERS) {
    return order.total;
  }

  return order.total * LOYALTY_DISCOUNT;
}
What is the difference?BadGood
Namescalc, u, p say nothingprice, order, pastOrders speak for themselves
NumbersThe meaning of 3 and 0.9 is hiddenNamed constants explain the meaning
Typeany, no safetyThe Order type, mistakes are caught at compile time
BracesA one-line ifBraces and an early return, a clear flow

Four practices show up in a single function. This is how the course works: each chapter explains one practice on its own.

5. How to apply it

The course is organized into sections. The first chapter of each section is:

SectionStart hereWhat you will learn
Getting StartedCore PhilosophyThe thinking behind all the rules
Clean CodeSelf-Documenting CodeNaming, functions, formatting, constants
Architecture & TypesStrict TypingTypes, service layer, project structure
Backend & APIAPI Handler ShapeHandlers, validation, errors, auth
DatabaseDatabase Naming & DesignTables, migrations, queries
SecuritySecrets ManagementSecrets, headers, OWASP, dependencies
Frontend & UIReact Component PracticesComponents, Next.js, design tokens
UX PrinciplesVisual Hierarchy & SpacingForms, onboarding, dashboards
Testing & QualityDefinition of DoneTesting and performance
Team WorkflowGit Branches & CommitsGit, PRs, CI/CD, docs
How to read each chapter
Read the rule in one line
Understand which real problem it prevents
Check your level: learning, production or senior
Compare the bad and good code
Read the exceptions so the rule does not feel blind
Apply it to one file in your own project

6. Exceptions and common mistakes

Some rules in this course are deliberately strict, like "no comments in code at all" or "no ternaries". These come from one strict house style. Many teams allow some of them. We give both the rule and its reason, and state clearly what the trade-off is.

Mistake: Treating every rule as a universal truth

Why? Some rules are for safety and some are just one team's preference. Giving them the same weight causes arguments and confusion.

Better: Read the Exceptions section of each chapter and remember the reason for the rule, not only the rule.

Mistake: Applying all the rules together from day one

Why? A beginner's mind cannot handle concepts and rules at the same time, and learning slows down.

Better: Follow the roadmap in the When to Learn What chapter and make two or three practices solid at a time.

Mistake: Ignoring the team's existing style and bringing your own preference

Why? If a repo has two styles, every new reader has to understand both, and consistency is gone.

Better: Follow the repo's rules first, and if you want a change, discuss it with the team and make it across the whole repo at once.

7. What to learn before and after

StageTopics
BeforeThe basics of any one language, like JavaScript Functions
AlongsideCore Philosophy
AfterWhen to Learn What, Self-Documenting Code
Suggested order
Introduction
Core Philosophy
When to Learn What
Clean Code section

Final quick revision

PointDetail
Best practiceA way of working born from experience that makes code cheaper
House rulesA team's chosen set, some universal and some opinion
Real benefitFewer surprises, faster review, easier onboarding
When to follow tableThe difference between learning, production and senior level
How the course worksRule, reason, level, code, steps, exceptions