Skip to content

Lesson 18 of 18Working like an engineer

Wrap-Up: Start Here

Tie the whole Start Here track together: one realistic task walked from the terminal to production, a mixed review, and where to go next.

12 min read0/6 questions

When you opened Welcome to RazorCode, a terminal was a black box, a URL was something you typed, and "it does not work" was a complete bug report. Since then you have followed code down to the CPU, traced a request across the network, driven your machine from the shell, and seen how a team ships a change. None of those lessons was about one language or framework, and that is the point: this is the ground every other track stands on. This lesson puts the pieces side by side and then runs them together as one job.

The path you took

Start Here, unit by unit
  1. Unit 1

    How software works

    Code, bytes, processes, DNS, TCP and HTTP stopped being magic. That gave you the words to describe what a tool is doing, which the next unit puts in your hands.

  2. Unit 2

    Your tools

    The terminal, shell scripts, SSH, Git and a set-up machine let you act on those ideas directly: run things, inspect them, save your work and reach other computers.

  3. Unit 3

    Working like an engineer

    Reading errors and docs, security habits and the team workflow turned tool use into a method, so you can fix problems and ship changes the way a team expects.

  4. Now

    Wrap-up

    One task that uses all three units in the order you would really reach for them.

How it fits together

It is your second week. The ticket says: "The order-status script fails against staging. Fix it, and add the delivery date to its output." Here is how the whole track shows up in one afternoon.

Getting the code. You clone the repository over SSH, because your key is already on GitHub from SSH and Remote Machines. The project has a .python-version file, and the version manager from Setting Up Your Machine picks it up. Before running anything you check which python and python --version, because The Terminal taught you that the program that runs is whichever one comes first on your PATH, not the one you assume.

The first failure. You run the script and it dies with a traceback. Following Reading Errors and Debugging Anything, you read from the bottom: ConnectionRefusedError, raised inside a library frame, called from line 41 of your own file. The exit code is 1, which is how the wrapper script knew it failed (What the Operating System Does).

Narrowing it down. "Refused" is a specific word. Networking You Will Actually Debug told you that refused means you reached a machine and nothing was listening on that port, while a timeout means you never got an answer at all. You print the URL the script uses: http://localhost:8000. That is your own laptop, not staging. The script reads API_URL from an environment variable, and your shell never set it. Environment variables belong to a process and its children, so the value in your teammate's terminal does nothing for yours. You set it from the team's .env example and run again.

The second failure. Now you get an HTTP 401. From HTTP and APIs, the 4xx family means the request is wrong, and 401 specifically means "who are you?". You test by hand with curl -i and an Authorization header, and the request works. The token was missing from your environment. You put it in .env, which is already in .gitignore, because Security Habits for Developers made the rule simple: secrets never go in code or commits.

Reading the data. You pipe the response through jq (Shell Power Tools) to see its shape. Delivery dates come as ISO strings in UTC, and order totals come as integer cents. That second detail is deliberate, and How Data Is Stored explains why: floats cannot represent most decimal fractions exactly, so money stored as 19.99 slowly drifts.

Checking the library. The HTTP library prints a deprecation warning for the timeout argument you are copying from an old example. Reading Documentation and Versions sends you to the docs for the version in the lock file, not the latest, and the changelog shows the new argument name. You fix it once rather than ignoring the warning until an upgrade breaks it.

The wrapper. The cron job calls a small bash script. You add set -euo pipefail and quote every variable, as in Shell Scripting Without Tears, so a failed step stops the job loudly instead of producing an empty report.

Shipping it. You create a branch, make two small commits (the fix, then the new field), and push. From Git Basics you check git diff --staged before each commit so .env cannot sneak in. You open a pull request with what, why and how you tested it, CI goes green, a teammate approves, and the change deploys to staging and then production. You watch the job's next run, as How Software Teams Work described. If it failed, you would roll back first and investigate second.

Notice the order. The concepts from Unit 1 were never a separate step. They were how you knew what each error meant, so you could choose the next tool instead of guessing.

Check yourself

Put it in order6 steps

You type a URL and press Enter. Put these steps in order.

  1. Tap the steps below in the right order.
Need a nudge? A hint shows where it starts.
Predict the outputPython

What does this print?

total = 0.1 + 0.2
cents = 10 + 20
print(total == 0.3, cents == 30)
Need a nudge? Hints walk you through it.
Quick check
Your script works in your terminal but fails under cron with 'API_URL is not set'. What is the most likely cause?
Need a nudge? A hint rules out a wrong answer.
Match the pairs0/5 matched

Match each symptom to the first thing to check.

Choose an item, then its match on the other side.
Quick check
You accidentally committed an API key and pushed it. What should you do first?
Need a nudge? A hint rules out a wrong answer.
Put it in order6 steps

Put a solid bug-fix workflow in order.

  1. Tap the steps below in the right order.
Need a nudge? A hint shows where it starts.

What you can do now

  • Explain, in order, what happens between typing a URL and seeing a page, and name the layer a given error belongs to.
  • Work in a terminal without a file manager: navigate, search, pipe, redirect, and inspect JSON with jq.
  • Write a short bash script that fails loudly, and know when it should become Python.
  • Use Git for daily work: branches, small commits, diffs, merges, simple conflicts and pull requests.
  • Log in to a server with SSH keys and copy files to it.
  • Debug a failure by reading the error, forming a guess and testing one change at a time.
  • Keep secrets out of code and explain what HTTPS does and does not protect.

This is a foundation, not mastery. You will not yet design a network or untangle a messy Git history alone, but you can follow what your team is doing and ask precise questions.

Mistakes that still catch people

  • Running the wrong program. python resolves to the system interpreter, or node to an old version, and nothing makes sense. Check which first. Revisit The Terminal and Setting Up Your Machine.
  • Debugging from the top of a traceback. The useful line is usually your own frame near the bottom, not the library code above it. Revisit Reading Errors and Debugging Anything.
  • Blaming the code for a config problem. Missing environment variables, wrong ports and localhost inside a container cause a large share of "it works on my machine" bugs. Revisit What the Operating System Does and Networking You Will Actually Debug.
  • Unquoted variables in shell scripts. A filename with a space splits into two arguments and the script quietly does the wrong thing. Revisit Shell Scripting Without Tears.
  • Committing everything with git add .. That is how .env files and debug output end up in history. Revisit Git Basics and Security Habits for Developers.
  • Trusting a tutorial's version. Code copied from an old post calls an API that has since changed or never existed. Revisit Reading Documentation and Versions.

Where to go next

Most paths continue with Python, where you will write the kind of script from the scenario properly, with functions, error handling, tests and a real project layout. If you are heading for frontend work, go to JavaScript & TypeScript instead. Everything from this track carries over to both: you will use the terminal, Git and your error-reading method in every lesson that follows.

Alongside the next course, practice for real:

  • Build a small command-line tool that calls a public JSON API, reads its key from an environment variable, and exits with a non-zero code on failure. Keep it in a GitHub repository with branches and pull requests, even working alone.
  • Make your dotfiles a repository. Version your shell config, aliases and Git settings, and set the machine up from scratch once using only that repository.
  • Read the official docs for Git and your shell. The Pro Git book and the bash manual's sections on quoting and expansion answer most of the questions that otherwise cost you an afternoon.
Key terms
process
A running program with its own memory, environment variables, standard streams and exit code.
environment variable
A named value a process inherits from whatever started it, used for config and secrets.
exit code
The number a process returns when it ends: 0 for success, anything else for failure.
PATH
The list of folders the shell searches, in order, to find the program for a command name.
status code
The three-digit number in an HTTP response; its first digit names the family, such as 4xx for client errors.
pull request
A proposal to merge a branch, where CI checks and teammates review the change before it reaches main.
root cause
The underlying reason a failure happened, as opposed to the symptom you first saw.