Lesson 1 of 18How software works
Welcome to RazorCode
Learn how RazorCode works, pick a path, and run your first lines of Python and JavaScript.
People who become working software engineers rarely got there because they were "naturally good at computers". They got there by writing a little code most days, getting stuck, getting unstuck, and coming back to the things they forgot. RazorCode is built around exactly that habit. This first lesson shows you how the site works, and you will run real code before it ends.
You do not need to install anything yet. Every code window on this site runs inside your browser.
How a lesson works
Every lesson follows the same rhythm: explain, show, check. You read a short explanation, you see the idea (as a diagram or as code you can run), and then you answer a question about it straight away. Answering right after reading is not a test. It is how the idea moves from "I read that" to "I know that".
Here are the pieces you will meet:
| Piece | What it is |
|---|---|
| Code window | Real, editable code with a Run button. Change it and run it again. |
| Visual | A diagram you can step through with the arrows or press play. |
| Question | Multiple choice, "predict the output", "put these in order", or "match the pairs". |
| Challenge | A small coding task with automatic tests. You write the code until every test passes. |
| Terms | Flip cards at the end of each lesson that recap the key words. |
Try a code window now. This is Python. The print function shows whatever you give it. Press Run, then change the text and run it again.
Press Run (⌘ Enter) to see what happens.And this is JavaScript. It does the same job with console.log.
Press Run (⌘ Enter) to see what happens.You just ran two programs in two different languages. Nothing broke. If you ever do break something, that is fine too: the reset button on the code window brings the original code back.
Numbers and text behave differently. What does this print?
print("2" + "3")Streaks and freeze days
There are no points to chase here. What RazorCode keeps is what you actually did: lessons finished, problems solved, cards reviewed. Those counts are on your profile, and they are the honest picture of your progress.
What it does track is your streak: the number of days in a row you did at least one thing (got a question right, finished a lesson, solved a problem, finished a review round). One real action is enough. Showing up on a tired Tuesday matters more than a long session once a week.
Life happens, so you get freeze days: you start with one, you earn another every time your streak hits a multiple of 7 days, and you can hold two at once. If you miss a day, a freeze is used automatically and your streak survives.
The review deck: how you stop forgetting
You will forget most of what you read within a few days. Everyone does. The fix is spaced repetition: you review something just as you are about to forget it, and each successful review pushes the next one further away.
RazorCode does this for you. Any question you miss goes into your review deck automatically, and you can add any Terms card by hand. When you get a card right, it waits longer before coming back: 1 day, then 2, 4, 8, 16, and 32. Get it wrong and it starts again at 1 day. Ten minutes of review a day keeps months of lessons fresh.
You read a short section and run the code.
Practice and interview prep
Two areas sit outside the tracks:
- Practice holds coding problems grouped by pattern (sliding window, two pointers, binary search and so on). Patterns matter because interview problems are mostly variations on about fifteen of them. There is also a daily challenge, one problem picked for everyone each day.
- Interview collects what you need for the job hunt: how interviews are structured, question banks for Python, JavaScript, React and backend topics, system design practice, and a cheat sheet to skim before the day.
You do not need either on day one. They become useful once you have a few tracks behind you.
Where would you go for each of these?
Pick a path
A track is a course on one subject (Python, React, Docker). A path is a suggested order of tracks for a goal. Every path except the sprint starts here, with this track.
| Path | For you if | Tracks, in order |
|---|---|---|
| Frontend engineer | You want to build what people see and click | Start, JavaScript & TypeScript, React, Next.js, Algorithms, Design & Architecture, Interview |
| Python backend engineer | You like data, APIs and systems | Start, Python, FastAPI, Algorithms, System Design, Docker, AWS, Interview |
| Full-stack engineer | You want to own a feature end to end | Start, Python, JS & TS, React, Next.js, FastAPI, Docker, AWS, System Design, Interview |
| Interview sprint | You already code and have interviews coming | Algorithms, System Design, Interview |
Not sure? Pick full-stack. It is the longest, but nothing in it is wasted, and you can narrow down later once you know what you enjoy.
How this course is laid out
This track, Start Here, comes in three units:
- How software works: what really happens when code runs, how data is stored as bytes, what the operating system does, and how the web, networks and HTTP APIs fit together.
- Your tools: the terminal, shell scripting, SSH, Git and a properly set up machine.
- Working like an engineer: reading errors, reading docs, basic security habits and how a team ships software.
By the end you can explain what happens between typing a URL and seeing a page, work comfortably in a terminal, keep your code in Git, and debug a failure step by step instead of guessing. The course closes with a short wrap-up that ties all three units into one working day.
How to learn well
A few habits make a bigger difference than talent:
- Type the code yourself. Reading code feels like understanding. Typing it, running it and changing it is understanding. Never copy and paste a challenge solution.
- Little and often beats long and rare. Thirty minutes a day for a month beats a twelve-hour weekend. Your brain consolidates new skills while you sleep.
- Being stuck is the job. Professional engineers are stuck several times a day. When you are stuck, re-read the error message slowly, change one thing, and run again. Use the challenge hints one at a time.
- Do your reviews. The deck is the cheapest learning you will ever do.
- Explain it out loud. If you can explain an idea to an imaginary friend in two sentences, you know it. If you cannot, that is the part to re-read.
Your code does not work. Put a good debugging routine in order.
- Tap the steps below in the right order.
Your first challenge
Time to write a function of your own. A function is a named, reusable piece of code: you give it some input, and it gives you back (returns) a result. You will learn functions properly in the Python and JavaScript tracks. For now, follow the shape in the starter code.
The challenge window lets you pick Python or TypeScript (TypeScript is JavaScript with type labels added). Solve it in both if you like: the second language is good practice for reading code you didn't write.
Your first function
Write a function that takes a name and returns the greeting Hello, <name>!.
"Ada" → "Hello, Ada!"
"Sam" → "Hello, Sam!"Return the text, do not print it. The tests call your function and look at what comes back. Spelling, the comma, the space and the exclamation mark all count.
Hello, Ada! instead of returning it. Why do the tests fail?- streak
- The number of days in a row you did at least one thing: got a question right, finished a lesson, solved a problem or finished a review round. Freeze days protect it when you miss one.
- spaced repetition
- Reviewing something at growing intervals (1, 2, 4, 8 days…) so it moves into long-term memory.
- review deck
- Your personal set of cards: every question you missed, plus any terms you saved.
- function
- A named, reusable piece of code that takes input and returns a result.
- string
- A piece of text in code, written inside quotes, like
"hello".