L6 · EngineeringSoftware Engineering 101 · part 3 of 5

Project Zero: How Real Teams Start Codebases

What happens before the first line of code, after `mkdir` and `main.go`. How a team sets up, plans and tracks a new application.

Takumi Yamada
· 5 min read
architecturegitkanbantdd

Starting a project can look like one step. You create a folder, open your editor, and start writing code.

On a team, writing code is usually the last part of starting a project. Setting up the , planning the work and tracking it come first.

Once that setup is in place, , task boards and a tidy history stop feeling like extra work. They make the team faster.

1SKELETONgit initignore file, module,folder layout2COMMITchore:an empty baselineto branch from3ISSUESKanban boardthe app, cut intosmall tasks4DESIGN DOCRFCthe architecture,agreed first5CODEfeature branchtest, implement,merge
The order this post follows. Writing code is step five.

The infrastructure phase

Before anyone writes a single if statement, the project needs a few files that set its rules.

Version control comes first. It starts with git init, which creates the repository, and a .gitignore file. The ignore file lists files that should never save. The repository belongs to the whole team, and teammates use different and editors. Each of those creates its own files in the project folder, and those files don't belong in the shared history.

The Git logo: an orange-red diamond with a branching line inside, next to the word git.
The Git logo. The line inside the diamond splits off into a branch, which is the idea at the heart of Git. Linus Torvalds wrote Git in 2005 to manage the code of the Linux kernel, and it's now the most widely used version control system.Logo: Jason Long, CC BY 3.0, via Wikimedia Commons (original). Changes: placed on a background.
PatternOriginWhy it must be ignored
*.swpVim and NeovimSwap files the editor keeps for crash recovery while a file is open. They are temporary and specific to one person.
.DS_StoremacOSHidden files that store how a folder is displayed. Without this line, they get committed as soon as a Mac user opens the folder.
.vscode/ and .idea/VS Code and JetBrainsPersonal editor settings. Committing them would overwrite your teammates' own settings.
IN YOUR FOLDERIN THE REPOSITORYmain.gomain.goREADME.mdREADME.md.DS_Storeignored: macOS folder settingsmain.go.swpignored: an editor's swap file.vscode/ignored: personal editor settings
What a .gitignore does. Files that match its patterns stay on your machine.

Then the module. A command such as go mod init, npm init or cargo new creates the file where the project's name and its dependencies, the outside libraries it uses, are recorded. From then on, the package manager knows exactly which versions the project needs.

Then a standard folder layout. Most team codebases keep the program's starting point separate from the rest of its code. A common layout looks like this.

project-root/
├── .gitignore
├── go.mod (or package.json)
├── README.md
├── cmd/
│   └── app/
│       └── main.go         ← Entry point
├── internal/               ← Private application logic
└── docs/                   ← Project documentation

The initial commit, and Conventional Commits

that empty skeleton right away, as its own commit. Don't mix the project setup with the first feature.

Many teams write commit messages following a standard called Conventional Commits.

Here is the problem it solves. A repository can have hundreds of commits. If their messages say "updated stuff" and "fixed bug", nobody can tell what changed without reading every one. Conventional Commits starts every message with a fixed prefix that says what kind of change it is. Anyone reading the history can see at a glance what happened, and tools can build release notes from the messages automatically.

PrefixPurposeExample
chore:Setup, maintenance and dependency updates that don't change what the app does.chore: initial project structure
feat:A new feature.feat: add user authentication
fix:A bug fix.fix: prevent app crash on empty input
docs:Documentation only.docs: add API installation guide
refactor:Code rewritten to be cleaner or faster, without changing what it does.refactor: simplify database query
test:New tests, or fixes to existing tests.test: add unit tests for routing
NO CONVENTIONCONVENTIONAL COMMITSIN THE RELEASE NOTESupdated stuffchore: initial project structuremore changesfeat: add user authenticationlisted under Featuresfixed bugfix: prevent app crash on empty inputlisted under Fixesstuffdocs: add API installation guide
The same four commits with and without the prefixes.

Using this system, the first commit is a chore: commit with the project structure and settings. It gives everyone the same clean starting point to branch from.

Planning: issues and the Kanban board

An empty repository doesn't tell a team what to do next. So the team splits the application into small tasks. Each task is written down as an issue in an issue tracker, such as GitHub Issues, and the issues go on a Kanban board. A Kanban board is a board with one column for each stage of work, and each task moves from left to right as it progresses.

ColumnPurpose
To DoTasks that are fully described and ready to start.
In ProgressTasks someone is working on right now.
ReviewCode that is written and waiting for a teammate to review it.
DoneMerged into the main codebase.
TO DOUSER AUTHROUTING TESTSINSTALL GUIDEscoped andready to startIN PROGRESSDESIGN DOCwhat someone isworking on nowREVIEWwritten, waiting fora pull request reviewDONESKELETONmerged intomain
The board at the start of a project. The design document, covered next, is the first issue to move.
A whiteboard divided by blue tape into columns headed Stories, To do, In progress and Testing, with coloured sticky notes in the columns.
A task board on an office wall, with one sticky note for each task. Its columns are close to the ones above. A Kanban board in an issue tracker works the same way, with an issue in place of each note.Photo: Logan Ingalls, CC BY 2.0, via Wikimedia Commons (original). Changes: cropped.

The design document

The design is written down before the code. The first task to move into In Progress is usually the design document. Some teams call it an RFC, which stands for Request for Comments.

Before anyone creates a table or writes the main logic, the document describes the plan: how the parts of the system fit together, what data it stores, and what the user does step by step. The team reads it and comments, and agrees on the design before anyone builds it. Changing a document is much cheaper than changing finished code.

DESIGN DOCUMENT, OR RFCthe architecturethe data structuresthe user flowTHE TEAMreads, commentsAGREEDthen the code
The design is agreed in a document before any of it is built.

Workflow: feature branches and test first development

Once the design is agreed, development starts. Nobody commits directly to the main branch.

  1. Branch. Make a separate branch for your work, for example with git checkout -b feature/user-auth. Your changes stay there until they are ready.
  2. Write the test first. In Test-Driven Development, you first write a test that describes what the code should do, and then you write the code. Writing the test first makes you use your own (Application Programming Interface) the way a caller would, which tends to make the functions easier to use.
  3. Implement. Write the code until the test passes.
  4. Merge. Open a pull request, which asks the team to review your branch and merge it into main.
mainchore: initial project structure1BRANCHgit checkout -bfeature/user-auth2TEST FIRSTbefore the codeit tests3IMPLEMENTuntil thetest passes4MERGEpull request
One feature, from branch to merge. Main only changes at the last step.

The Bottom Line

I write my tools in Neovim on Arch, and when I'm working alone it's tempting to start coding right away.

But this workflow, with design documents before code, a complete ignore file, conventional commits and tracked issues, is what lets other people work in the codebase with me.

Plan, branch, test, implement, merge. Following those steps makes it much easier to work with other engineers, and with yourself six months later.

Check yourself

3 questions · nothing is saved
  1. 1.Why do .DS_Store and .vscode/ go in .gitignore?
  2. 2.Which Conventional Commits prefix fits the first commit with the empty project structure?
  3. 3.In Test-Driven Development, what do you write first?

Who wrote this

Author profile and background

Takumi Yamada

Takumi Yamada

· Backend Engineer

Backend engineer building services, databases, Linux tooling, and NEGEN SYSTEMS. Writing about low-level mechanics, distributed systems, and real-world security.

End of post
NEGEN SYSTEMS
Receipt · post 19 of 31
Written
Apr 19, 2026
Length
1,038 words · 5 min
Built
…
Served by
…
Delivered
…
Over the wire
…
Go's share
…
Next in Software Engineering 101 · part 4 of 5

Model-View-Update: The Loop That Makes Rust TUIs Sane

Every UI I wrote badly had the same problem: one part of the screen changing another part's data. MVU prevents that with one rule, and in Rust that rule is exactly what the borrow checker already asks for.

8 min read