Branchwell

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

Raw 9.1 KB on 807b8657974875ed44f307014cfbf8ce673dc5a6
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
8sources:
9 - https://code.visualstudio.com/docs
10 - https://git-scm.com/book/en/v2
11 - https://code.claude.com/docs/en/overview
12 - https://developers.openai.com/codex
13 - https://docs.github.com/en/copilot
14 - https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-coding-agent
15 - https://cursor.com/docs
16 - https://docs.github.com/en/actions
17---
18
19Writing 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.
20
21## The modern loop
22
23<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.">
24 <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">
25 <rect x="20" y="40" width="100" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" />
26 <text x="70" y="76" fontSize="16" textAnchor="middle" fill="currentColor">Plan</text>
27 <rect x="140" y="40" width="100" height="60" rx="10" className="soft" stroke="currentColor" strokeWidth="2" />
28 <text x="190" y="68" fontSize="15" textAnchor="middle" fill="currentColor">Write</text>
29 <text x="190" y="88" fontSize="14" textAnchor="middle" fill="currentColor">you + AI</text>
30 <rect x="260" y="40" width="100" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" />
31 <text x="310" y="76" fontSize="16" textAnchor="middle" fill="currentColor">Test</text>
32 <rect x="380" y="40" width="100" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" />
33 <text x="430" y="68" fontSize="15" textAnchor="middle" fill="currentColor">Commit</text>
34 <text x="430" y="88" fontSize="14" textAnchor="middle" fill="currentColor">with Git</text>
35 <rect x="500" y="40" width="85" height="60" rx="10" fill="none" stroke="currentColor" strokeWidth="2" />
36 <text x="542" y="76" fontSize="16" textAnchor="middle" fill="currentColor">Review</text>
37 <line x1="120" y1="70" x2="138" y2="70" stroke="currentColor" strokeWidth="2" />
38 <line x1="240" y1="70" x2="258" y2="70" stroke="currentColor" strokeWidth="2" />
39 <line x1="360" y1="70" x2="378" y2="70" stroke="currentColor" strokeWidth="2" />
40 <line x1="480" y1="70" x2="498" y2="70" stroke="currentColor" strokeWidth="2" />
41 <path d="M310 100 L310 160 L190 160 L190 102" fill="none" stroke="currentColor" strokeWidth="2" strokeDasharray="6 5" />
42 <text x="250" y="185" fontSize="14" textAnchor="middle" fill="currentColor">Test fails? Fix and test again.</text>
43 <path d="M542 100 L542 220 L70 220 L70 102" fill="none" stroke="currentColor" strokeWidth="2" strokeDasharray="6 5" />
44 <text x="306" y="245" fontSize="14" textAnchor="middle" fill="currentColor">Next change starts the loop again</text>
45 </svg>
46</Diagram>
47
48## The editor: where you read and write code
49
50A **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.
51
52**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.
53
54What an editor gives you:
55
56- **A file explorer** showing every file in your project
57- **Syntax highlighting and error underlines** so mistakes stand out before you run anything
58- **A built-in terminal**, a text window where you type commands
59- **Extensions** that add support for each language, like Python or JavaScript
60- **AI help** that suggests the next lines as you type and answers questions about your code
61
62## Git: saving every change safely
63
64**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.
65
66The key ideas:
67
68- **Repository (repo):** a project folder that Git is tracking.
69- **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.
70- **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.
71- **Push and pull:** push sends your commits to the remote. Pull brings down your teammates' commits.
72- **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.
73- **Pull request:** a request to merge your change into the main version. Teammates review the code and leave comments before it is accepted.
74
75Everyday commands look like this:
76
77```bash
78git status # what changed?
79git add . # include all changes in the next save
80git commit -m "Add price total" # save a snapshot with a message
81git push # send it to the shared copy online
82```
83
84You can also do all of this with buttons in VS Code's Source Control panel.
85
86<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>
87
88## AI coding agents
89
90An **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.
91
92Leading examples:
93
94- **Claude Code** from Anthropic, which runs in your terminal, inside VS Code and JetBrains editors, in a desktop app, and on the web
95- **Codex** from OpenAI, which runs in the terminal, in editors and in the cloud
96- **GitHub Copilot**, which suggests code as you type, has an agent mode in the editor, and has a cloud coding agent you can assign a task to
97- **Cursor**, an editor with built-in agent features
98
99### How to work with an agent well
100
101<Steps>
102 <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>
103 <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>
104 <Step title="Let it run the tests">Agents work best when they can check their own work by running the project's tests.</Step>
105 <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>
106 <Step title="Commit when it works">Save a commit so you can always go back.</Step>
107</Steps>
108
109<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>
110
111You 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.
112
113## Tests: code that checks code
114
115A **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.
116
117For 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**.
118
119Most 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.
120
121## How the pieces fit together
122
123| Piece | Job | Common tools |
124| --- | --- | --- |
125| Editor | Read and write code | VS Code, Cursor, JetBrains |
126| Version control | Save history, share changes | Git with GitHub or GitLab |
127| AI agent | Draft and edit code, run checks | Claude Code, Codex, Copilot |
128| Tests | Prove the code works | pytest, Vitest, Jest |
129| CI | Run tests on every push | GitHub Actions, GitLab CI |
130
131## Common mistakes
132
133- Working for days without a commit, then losing it all
134- Accepting AI changes without reading them
135- Skipping tests because "it works on my machine"
136- Committing passwords or API keys to Git
137- Giving an agent a vague request and getting a vague result