Below the Fold

A designer’s path to creative technologist. Thirty days, ten minutes each, on how software actually gets made.

Code on a page A page of indented lines that step in and out like code, with a red text cursor at the end of the last line.

What code looks like

After today, you can explain what languages, runtimes, and compilers do, and find your way around a codebase you’ve never opened.

Dip your toes 1 min

Code is plain text that people write in a programming language, a set of words and rules a computer can follow. Because it’s text, a team can read it, review it, and track every change. Where the code has to run decides most of the language. Instagram’s website runs JavaScript because that’s what web browsers understand, while its servers run Python. Before code ships, a compiler often translates it, the way TypeScript, a stricter form of JavaScript, becomes plain JavaScript for the browser. All of it lives in a repository, one folder holding the project’s files and their history. For a designer, file names work as a map. A proposed change touching a billing folder deserves more care than one touching a button.

The full lesson 9 min

Why this exists

A computer’s processor, the chip that does the actual work, understands only tiny instructions. Add these two numbers. Move this value over there. Skip ahead if the result is zero. You could write Netflix in instructions like these in theory, but no team could build it or read it.

Programming languages solve this. They let people write instructions in something closer to English, and other programs translate that text into the tiny instructions the chip runs. What people write is called source code, and it’s plain text. Because it’s text, a team can read it, search it, review it, and track every change to it. That matters because a product is hundreds of people editing the same files for years.

What it is

Start with Instagram. Its servers are famous for running Python, a language known for being readable. Its website runs JavaScript, because that’s the language web browsers run. Its phone apps, like most phone apps, are built in the languages Apple and Google support for their platforms. One product uses several languages, and where each piece of code has to run decides most of the choice.

A programming language is a set of words and rules for writing instructions a computer can follow. These are the ones you’ll see most:

  • JavaScript. The language of the browser, also widely used on servers.
  • TypeScript. JavaScript with type labels, notes that say what kind of value something is, so mistakes get caught before the code runs.
  • Python. Popular for backends, data analysis, and machine learning.
  • Java and Go. Common in large backend systems.
  • Swift and Kotlin. The main languages for iPhone and Android apps.
  • SQL (Structured Query Language). The language for asking a database questions.

Open any single file and the shape is familiar across languages. The top lists imports, the other files and outside code this file uses. Below that sit functions, named chunks of code that each do one job, like formatting a price or saving a playlist. Scattered through are comments, notes for humans that the computer ignores. Most files are short, often under a few hundred lines, because small files are easier to review and reuse.

Code doesn’t run on its own. It needs a runtime, the program that executes it. Your web browser is the runtime for JavaScript on your device. Node.js is a runtime that lets JavaScript run on a server, outside any browser. Python code runs inside the Python runtime, which is installed on the server.

One language, two runtimesA JavaScript file called price.js on the left, with arrows to two runtimes on the right: a web browser on your device and Node.js on a company server.price.jsWeb browserNode.jsOne JavaScript fileRuntime on your deviceRuntime on a company server
Figure 1. One JavaScript file can run in two different runtimes. Look at the single file feeding both: the language stays the same, and the runtime decides where the code runs.

Some code goes through a compiler first. A compiler translates source code into a form a machine or runtime can execute, before the code ever runs. Swift gets compiled into an app file that iPhones can run. TypeScript gets compiled into JavaScript, because browsers don’t read TypeScript.

That translation is one step in what teams call a build. Day 13 covers how builds work.

Source code versus what shipsOn the left, source files the team writes, such as Button.tsx, Card.tsx, Checkout.tsx, and theme.css, plus hundreds more. An arrow leads to a build step that compiles, bundles, and shrinks them. Two arrows lead out to main.js and main.css, the files that ship to users.What the team writesWhat shipsButton.tsxCard.tsxCheckout.tsxtheme.cssand hundreds moreBuildCompiles, bundles,and shrinksmain.jsmain.css
Figure 2. A build turns many source files into a few smaller files that ship to users. Look at what ships: two files that no one on the team edits by hand.

All of this code lives in a repository, a folder holding a project’s files and its full history of changes. People also call it a repo or a codebase. Some companies keep one repository per app. Google keeps most of its code in one giant repository shared across the company.

When you open a typical web repository for the first time, the top level looks similar from project to project. You’ll find a README.md, a plain-language introduction with setup steps. The “.md” stands for Markdown, a simple format for text. You’ll find a package.json file listing the project’s commands and the outside code it relies on.

The application code itself sits in a folder called src, short for source. Around it you’ll see a tests folder for code that checks other code, and a public folder for images and fonts. Settings files for tools sit alongside them, and files starting with a dot are hidden by default.

The top level of a typical web repositoryA folder tree for a project called my-app. Four setup and settings entries sit at the top: README.md, package.json, tsconfig.json, and .env.example. Below them come public and tests. The src folder holds the product’s own code in components, pages, and server.my-app/README.mdpackage.jsontsconfig.json.env.examplepublic/tests/src/components/pages/server/Start here: what it is, how to run itCommands, plus the outside code it needsSettings for the TypeScript compilerSample settings, hidden by its dotImages and fonts, served as they areCode that checks other codeThe product’s own codeReusable pieces of interfaceOne file or folder per screenCode that runs on the serverSetup andsettings
Figure 3. The top level of a typical web repository, the first thing you see when you open a codebase. Look at how much of the top level is setup and settings, with the product’s own code tucked inside src.

Inside src, teams group files either by type or by feature. Grouping by type puts all buttons and cards in one folder and all pages in another. Grouping by feature puts everything for checkout in one folder, whatever kind of file it is. Neither is wrong, and the choice tells you how the team thinks about the product.

How it shows up in your work

Reviewing a pull request, a proposed change that teammates check before it’s accepted, starts with the files it touches. Their paths tell you a lot before you read a line. src/components/Button.tsx is frontend code in TypeScript, while server/billing/refund.py is backend code in Python that touches money. A file in a folder named migrations changes how data is stored. You can judge the risk of a change, and who should review it, from the paths alone.

Reading a pull request by its file pathsThree changed files from one pull request, each with a note. src/components/Button.tsx is frontend code in TypeScript. server/billing/refund.py is backend code in Python that touches money. db/migrations/0042.sql changes how data is stored.Files changed in one pull requestsrc/components/Button.tsxserver/billing/refund.pydb/migrations/0042.sqlFrontend code,in TypeScriptBackend code, in Python,and it touches moneyChanges how datais stored
Figure 4. Three file paths from one pull request, and what each one tells you before you read a line. Look at the billing file: its path alone says backend code that handles money, so it needs the most careful review.

If you prototype with an AI coding tool like Cursor or GitHub Copilot, the folder layout matters to you directly. When the tool changes your prototype, check the file list. A change meant for a button that also touches package.json or server/ is doing more than you asked. Knowing where the frontend code ends and the server code begins also lets you point the tool at the right folder first.

“That service is written in Go,” said in a planning meeting, is a staffing statement as much as a technical one. It means engineers who only know JavaScript can’t pick up that ticket quickly. Language choices decide who can work where. That shapes how fast a feature moves when it crosses from one part of the codebase to another.

The one thing people get wrong

Choosing a programming language looks like a matter of taste, like picking a typeface. Mostly, the platform picks. Browsers run JavaScript, so frontend code usually ends up as JavaScript whatever it started as. Apple’s tools are built around Swift, so iPhone apps lean that way. The runtime decides where code can run, and that rules out most options before anyone states a preference.

Figma, the tool you design in, is the best-known exception. Its canvas, the part that draws your designs, is written in C++ and runs inside your browser tab through WebAssembly. WebAssembly is a compact format that browsers run alongside JavaScript, built for code that has to be fast. Figma’s engineers wrote about moving to WebAssembly in 2017. There’s more here about WebAssembly; you don’t need it yet.

Where code runs decides the languageFour places code runs, each pointing to its main language. Web browser points to JavaScript, iPhone to Swift, and Android phone to Kotlin. Server, where the team controls the runtime, points to Python, Java, Go, and JavaScript on Node.js.Where the code runsMain languageWeb browseriPhoneAndroid phoneServerTeam controls the runtimeJavaScriptSwiftKotlinTypeScript compiles into itPythonJavaGoJavaScript (Node.js)
Figure 5. Where code has to run decides most of the language choice. Look at how the device rows each point to one main language, while the server row has many.

The server is the one place teams get a real choice, and there the ecosystem decides. The ecosystem is the libraries, tools, and people already using a language. Python dominates machine learning because the best machine learning tools were built for it first. Its syntax matters less than its head start.

When an engineer argues for a language, they’re usually arguing about hiring and tooling. There’s more here about cross-platform tools that let one language run on several devices; you don’t need it yet.

Ask an engineer this

“When you open a codebase you’ve never seen, what are the first three files you read, and why?”

Engineers who’ve joined several teams have a routine for this, and it’s rarely “start at the top and read everything.” Check whether they mention the README, the entry point (the file where the program starts running), and how they figure out which folders matter. Then open your own team’s repository and try their routine on it. Notice which folders you could explain to someone else and which ones you couldn’t.

Terms from today

Source code
The human-readable text, written in a programming language, that a team writes and edits to build a product.
Programming language
A set of words and rules for writing instructions a computer can follow, like JavaScript, Python, or Swift.
Runtime
The program that executes code, like a web browser for JavaScript on your device or Node.js for JavaScript on a server.
Compiler
A program that translates source code into a form a machine or runtime can execute, before the code runs.
Repository
The folder that holds a project’s code and its full history of changes, also called a repo or a codebase.
Next

Day 3: Dependencies

Libraries, frameworks, package managers. Why nobody writes software from scratch and what “npm install” is doing.

2

What code looks like

All 30 days