↑ BACK TO TOP
open sidebar menu
  • Building Software Products/Foundations
    Knowledge Bases
    Analyzing Software CompaniesBuilding Software ProductsAI, it's not that complicatedWorking With Data Teams
    Sections
    1: Foundations
    The top 5 things PMs should know about engineeringWhat's code?What's the internet?What's cloud?What's an API?What's version control and Github?What's open source?The beginners guide to open source licensesWhat's documentation?
    2: Frontends vs backends
    3: Frontend
    4: Backend
    5: Deployment
    6: Building for Enterprise
    7: Analytics
Sign In

What's code?

Code is step by step directions, but for computers.

bedrock

Last updated: July 4, 2025

The TL;DR

Code is step by step directions, but for computers. 

  • Code is a way to tell your computer what to do under different circumstances
  • All code eventually gets broken down into ones and zeros
  • Developers write code in lots of different languages built for different purposes
  • Most code that people write today is built on packages of other people’s code

Code is probably the most fundamental building block of the difference between life today and life 20 years ago.

Terms Mentioned

HTML

Open Source

JavaScript

SQL

Server

Framework

Backend

Terminal

Deploy

CSS

Database

Code is just telling a computer what to do

The goal of any piece of software – as large as Gmail or small as a little calculator – is to get something done. The easiest way to understand code is to try and think through how you’d get that thing done, step by step. If we wanted to build Gmail, or any email client, we’d need to make sure it does a few things:

  • Show me my emails
  • Let me send and reply to emails
  • Let me mark emails as junk or flagged

And if we wanted to dive deeper into one of these – let’s choose Let me send and reply to emails – we could break it down into even more specific tasks:

  • A text editor to write emails
  • Address fields to put in recipients and cc / bcc
  • A little “swoosh” sound when we send an email

We can also break these into even more specific tasks – let’s choose Address fields to put in recipients and cc / bcc:

  • A cc field
  • A bcc field
  • Show cc in sent emails, but don’t show bcc
  • Auto-complete email addresses in these fields

You get the point by now. Every “feature” – or thing you want to build – eventually breaks down into “when your user does X, the program does Y.” Code is how you make that happen in practice.

To make this even more concrete, let’s take a look at a little app I built last year called SNQL – it helps you track the sneakers you own and when you wear, trash, or sell them. I…need help.

Here’s what it looks like (I know, it’s not pretty):

Loading image...

When you add in a new pair, it gets stored in a database. So the code needed to build this program was pretty simple: HTML/CSS to build and style the web page, and Python to add the data you’re inputting into the form into a database on the backend. If you click on the Manufacturer Name dropdown, it shows you the available manufacturers; that’s also the work of a Python script. 

Loading image...

Where code “is”

Code “runs” on a computer, and gets written in a programming language. When you run a program, the computer executes those instructions. Most applications that you’re using – like Gmail – work by having their code constantly run in the background, displaying things and waiting for user instructions.

Access the full post in a knowledge base

Knowledge bases give you everything you need – access to the right posts and a learning plan – to get up to speed on whatever your goal is.

Knowledge Base

Building Software Products

How to make positive contributions to your product roadmap.

$199.00/one-time

What's a knowledge base? ↗

Where to next?

Keep learning how to make positive contributions to your product roadmap.

What's the internet?

A network of computers all connected to each other and sharing information.

Foundations
What's cloud?

Cloud is how companies rent infrastructure over the internet.

Foundations
What's an API?

APIs take inputs and give you predictable outputs.

Foundations
Support
Sponsorships
Twitter
Linkedin
Privacy + ToS