When we first learn to program, most of the code is for ourselves. File names are short (test.js, utils2.js), variable names mean something only to us (x, temp, data2), and comments rarely exist. We understand it, we write it, we solve it. Once software grows and you join a team, that “we” takes on a different meaning. Code is no longer judged only by whether it works, but by whether other people can read, maintain and extend it.
What does writing code for a team mean?
Caring about how code is written as much as what it outputs. When I realised that every line carries a message to a teammate, my habits started to change. I began giving functions more descriptive names (fetchUserProfileFromAPI() instead of getData()), splitting components by single responsibility, and writing comments that are really for communication.
Code is silent documentation
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
Well-written code works like silent documentation inside a team. You should be able to understand a project just by reading the code, without opening the README or an onboarding document.
From “I” to “we”
The shift wasn’t easy. It meant compromising on my own style, and sometimes stopping to think instead of quickly “solving and moving on.” Then I saw that these pauses don’t slow the code down, they secure its future. Will a teammate understand what I was thinking when they look at this function tomorrow? Why is this component named this way?
Code review: constructive feedback
As code becomes shareable, communication in the team gets stronger. A place where nobody hesitates to touch anyone’s code, where PRs are clear and comments constructive, is only possible with this culture. Being able to say “our solution” instead of “my code” shows team awareness as much as technical skill.
Do
- Say “if we use approach X we get benefit Y” instead of “this could be better.”
- Don’t hold back positive feedback like “nice solution!”
- Guide with questions: “could this part cause a performance problem?”
Don’t
- Use judgemental phrases like “this is really bad.”
- Micromanage by commenting on every line.
Let tools guard the standards, not people
Arguments about formatting and style steal time from the real job of code review. Handing them to tools leaves the team’s energy for thinking.
- ESLint: code quality rules.
- Prettier: one consistent format.
- Husky + lint-staged: automatic checks before commits.
- Conventional Commits:
feat:,fix:,docs:. - EditorConfig: the same formatting across editors.
- Branch strategy: a branch per feature, review through PRs, no direct pushes to main.
Psychological safety
Google’s Project Aristotle research pointed to psychological safety, more than technical skill, as the most important factor separating successful teams: a place where you’re not afraid of making mistakes, where you can ask questions and share ideas. Writing code is also talking.
Conclusion: code is a team sport
Writing code for a team doesn’t mean writing more lines, it means writing more responsible ones. If we want to be developers who also think about other people’s time, focus and motivation, we have to go beyond individual productivity and build a ground that grows together. The best code is the code the team understands.