Branchwell

Become a Pro / website · becomeapro.ai / content / lessons / knowledge-work / coding / how-software-is-made-today.mdx

Raw 9.3 KB on f63bc385c0fa362af985bfb576a8b5aa2a3df60f
1---
2title: "How software is made today"
3description: "See the modern way software gets built: an editor like VS Code, Git to save every change, an AI coding agent like Claude Code or Codex, and automated tests that check the work."
4updated: 2026-12-03
5minutes: 11
6level: Beginner
7order: 1
8---
9
10Writing software today looks very different from even a few years ago. Programmers still write and read code, but they also work alongside AI coding agents that can read a whole project, make changes and run checks. What has not changed is the foundation underneath: a good editor, version control with Git, and tests. This lesson walks through each piece and how they fit together, so the rest of your coding journey makes sense.
11
12## The modern loop
13
14<Diagram caption="The everyday loop: plan the change, write it with an editor and an AI agent, test it, save it with Git, then share it for review.">
15 <svg viewBox="0 0 600 260" role="img" aria-label="A loop of five steps: plan, write code with editor and AI agent, run tests, save a commit with Git, share for review">
16 <rect x="20" y="40" width="100" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" />
17 <text x="70" y="76" fontSize="16" textAnchor="middle" fill="currentColor">Plan</text>
18 <rect x="140" y="40" width="100" height="60" rx="10" className="soft" stroke="currentColor" strokeWidth="2" />
19 <text x="190" y="68" fontSize="15" textAnchor="middle" fill="currentColor">Write</text>
20 <text x="190" y="88" fontSize="14" textAnchor="middle" fill="currentColor">you + AI</text>
21 <rect x="260" y="40" width="100" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" />
22 <text x="310" y="76" fontSize="16" textAnchor="middle" fill="currentColor">Test</text>
23 <rect x="380" y="40" width="100" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" />
24 <text x="430" y="68" fontSize="15" textAnchor="middle" fill="currentColor">Commit</text>
25 <text x="430" y="88" fontSize="14" textAnchor="middle" fill="currentColor">with Git</text>
26 <rect x="500" y="40" width="85" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" />
27 <text x="542" y="76" fontSize="16" textAnchor="middle" fill="currentColor">Review</text>
28 <line x1="120" y1="70" x2="138" y2="70" stroke="currentColor" strokeWidth="2" />
29 <line x1="240" y1="70" x2="258" y2="70" stroke="currentColor" strokeWidth="2" />
30 <line x1="360" y1="70" x2="378" y2="70" stroke="currentColor" strokeWidth="2" />
31 <line x1="480" y1="70" x2="498" y2="70" stroke="currentColor" strokeWidth="2" />
32 <path d="M310 100 L310 160 L190 160 L190 102" fill="none" stroke="currentColor" strokeWidth="2" strokeDasharray="6 5" />
33 <text x="250" y="185" fontSize="14" textAnchor="middle" fill="currentColor">Test fails? Fix and test again.</text>
34 <path d="M542 100 L542 220 L70 220 L70 102" fill="none" stroke="currentColor" strokeWidth="2" strokeDasharray="6 5" />
35 <text x="306" y="245" fontSize="14" textAnchor="middle" fill="currentColor">Next change starts the loop again</text>
36 </svg>
37</Diagram>
38
39## The editor: where you read and write code
40
41A **code editor** is a program for writing code. It colors different parts of the code so it is easier to read, catches typos as you type, and lets you run your program with a click.
42
43**Visual Studio Code** (VS Code) is the most widely used editor. It is free and runs on Windows, Mac and Linux. Others you will hear about include Cursor (built on VS Code with AI features), Zed, and JetBrains editors like PyCharm. They all do the same basic job.
44
45What an editor gives you:
46
47- **A file explorer** showing every file in your project
48- **Syntax highlighting and error underlines** so mistakes stand out before you run anything
49- **A built-in terminal**, a text window where you type commands
50- **Extensions** that add support for each language, like Python or JavaScript
51- **AI help** that suggests the next lines as you type and answers questions about your code
52
53## Git: saving every change safely
54
55**Git** is version control. It keeps a full history of every change to your project, so you can see what changed, when and why, and go back if something breaks. Nearly every software team in the world uses it.
56
57The key ideas:
58
59- **Repository (repo):** a project folder that Git is tracking.
60- **Commit:** a saved snapshot of your changes with a short message, like "Add total price to invoice page." Think of it as a save point in a game.
61- **Remote:** a copy of the repo hosted online on a service like GitHub, GitLab or Bitbucket, so your team can share it and it is backed up.
62- **Push and pull:** push sends your commits to the remote. Pull brings down your teammates' commits.
63- **Separate lines of work:** Git lets you start a side copy of the project to try a change without touching the main version. When the change is ready and reviewed, it gets merged back in.
64- **Pull request:** a request to merge your change into the main version. Teammates review the code and leave comments before it is accepted.
65
66Everyday commands look like this:
67
68```bash
69git status # what changed?
70git add . # include all changes in the next save
71git commit -m "Add price total" # save a snapshot with a message
72git push # send it to the shared copy online
73```
74
75You can also do all of this with buttons in VS Code's Source Control panel.
76
77<Callout type="tip">Commit small and often, with messages that say what changed. "Fix rounding on invoice totals" helps future you. "Stuff" does not.</Callout>
78
79## AI coding agents
80
81An **AI coding agent** is an AI that can work inside your project. Unlike a chat window where you paste code back and forth, an agent can read your files, make edits across many files, run commands and tests, and report back what it did.
82
83Leading examples:
84
85- **Claude Code** from Anthropic, which runs in your terminal, inside VS Code and other editors, and on the web
86- **Codex** from OpenAI, which runs in the terminal, in editors and in the cloud
87- **GitHub Copilot**, which suggests code as you type and also has an agent mode
88- **Cursor**, an editor with built-in agent features
89
90### How to work with an agent well
91
92<Steps>
93 <Step title="Describe the goal clearly">"Add a button on the invoice page that downloads the invoice as a PDF. Follow the style of the existing Print button." Give context, just as you would to a new teammate.</Step>
94 <Step title="Ask for a plan first on bigger changes">Have the agent explain what it plans to change before it starts. Correct the plan if needed.</Step>
95 <Step title="Let it run the tests">Agents work best when they can check their own work by running the project's tests.</Step>
96 <Step title="Review every change">Read the diff (the list of exact lines added and removed) before you commit. You are responsible for the code, not the AI.</Step>
97 <Step title="Commit when it works">Save a commit so you can always go back.</Step>
98</Steps>
99
100<Callout type="safety">Agents can run commands on your computer. Use the permission settings so they ask before doing anything risky, never give them passwords or production keys, and keep secrets in environment files that are not committed to Git. Follow your company's rules on which AI tools may see its code.</Callout>
101
102You still need to learn to read and understand code. The agent writes faster than you, but you have to judge if what it wrote is correct, safe and what was actually asked for.
103
104## Tests: code that checks code
105
106A **test** is a small piece of code that runs your program with a known input and checks the output. If someone, or some AI, breaks something later, the test fails and tells you right away.
107
108For example, a test for a function that adds sales tax might say: "when the price is 100 and the tax rate is 8%, the result should be 108." Python projects commonly use **pytest**. JavaScript projects often use **Vitest** or **Jest**.
109
110Most teams also set up **continuous integration (CI)**: every time code is pushed, a service like GitHub Actions runs all the tests automatically. A pull request with failing tests does not get merged.
111
112## How the pieces fit together
113
114| Piece | Job | Common tools |
115| --- | --- | --- |
116| Editor | Read and write code | VS Code, Cursor, JetBrains |
117| Version control | Save history, share changes | Git with GitHub or GitLab |
118| AI agent | Draft and edit code, run checks | Claude Code, Codex, Copilot |
119| Tests | Prove the code works | pytest, Vitest, Jest |
120| CI | Run tests on every push | GitHub Actions, GitLab CI |
121
122## Common mistakes
123
124- Working for days without a commit, then losing it all
125- Accepting AI changes without reading them
126- Skipping tests because "it works on my machine"
127- Committing passwords or API keys to Git
128- Giving an agent a vague request and getting a vague result
129
130<Resources>
131 <Resource title="Visual Studio Code docs" href="https://code.visualstudio.com/docs" source="Microsoft" kind="Docs">Getting started with the editor, terminal and Source Control panel.</Resource>
132 <Resource title="Pro Git book" href="https://git-scm.com/book/en/v2" source="Git" kind="Book">The free, official guide to Git.</Resource>
133 <Resource title="Claude Code overview" href="https://docs.claude.com/en/docs/claude-code/overview" source="Anthropic" kind="Docs">How to install and use Claude Code.</Resource>
134 <Resource title="Codex" href="https://developers.openai.com/codex" source="OpenAI" kind="Docs">How to use OpenAI's coding agent.</Resource>
135</Resources>