1.1 Collaboration in practiceHow good teams actually work

Effective teams practice four interpersonal skills. Communication: saying clearly what you're doing and why, and really listening. Consensus building: finding a plan that everyone can support, even if it wasn't anyone's first choice. Conflict resolution: settling disagreements fairly, ideally with evidence instead of volume. Negotiation: trading so that each person gets what matters most to them.
| Skill | What it looks like | Example |
|---|---|---|
| Communication | Say what you are doing and listen | "I am rewriting the login screen. Who uses it?" |
| Consensus building | Find a plan everyone can support | The team votes, then agrees to try the winner for a week |
| Conflict resolution | Settle a disagreement fairly | Two designs? Test both with real users |
| Negotiation | Trade so each side gets what matters most | "You pick the colors, I pick the layout" |
?Wait, what's consensus?
Pair programming
One famous model of collaboration is pair programming. Two programmers share one computer. The driver types the code. The navigator watches each line, catches mistakes as they happen, and thinks about where the program is going next. They swap roles often. It sounds slower than two people working separately, but pairs catch many errors the moment they are typed, and both people end up understanding all of the code.
Teams today rarely sit in one room, so they use online tools that let programmers share and give feedback on ideas and documents: shared documents and slides, comment threads on code, chat channels, shared task boards. These tools let a team in three time zones review the same code and see each other's comments. The course doesn't ask you to name specific products. It asks you to know what the tools are for: sharing work and giving feedback.
There is one more piece of good teamwork that matters a lot in this course: giving credit. When your program uses code that someone else wrote, whether a teammate, a classmate, a library, a website or an AI tool, you acknowledge it in the program's documentation, with where it came from or who wrote it. We'll come back to this in Topic 1.3.
?Wait, what's a code segment?
I thought about it. Show me
- (a) Pair programming: Mia is the driver, Jon is the navigator, and the error is caught as it's typed.
- (b) Negotiation, or conflict resolution: instead of one side winning, they find an option that gives everyone what matters to them.
Why?
Either name is defensible here. On the exam, look for the choice that matches the action described: trading to a compromise is negotiation. - (c) Consensus building: every view is heard, and the team commits to a plan everyone can accept.
- (d) Online collaboration tools: sharing a document and giving feedback on it, without meeting in person.
Answer: (a) Pair programming. (b) Negotiation (resolving a conflict). (c) Consensus building. (d) Using an online tool to share and give feedback.
Stuck? Get a hint
- For each moment, ask: is this about who types, about a disagreement, about agreeing as a group, or about sharing work?
- Two people at one keyboard with different jobs is a named model.
- A comment thread on a shared document is an online collaboration tool.
- AIt lets each programmer work on a different program at the same time.
- BIt guarantees the program will have no errors.
- COne programmer writes code while the other reviews it as it is written, so many errors are caught early and both understand the code.
- DIt removes the need to test the finished program.
Show the answer
C. Pair programming puts a second set of eyes on every line as it is written. That catches many errors early, but it guarantees nothing, which is the trap in the second choice. The program still needs testing.
- Collaboration skills: communication, consensus building, conflict resolution, negotiation.
- Pair programming: a driver types and a navigator reviews and plans, swapping roles often.
- Online tools let programmers share work and give feedback from anywhere.
- Credit any code segment written by someone else, including from libraries, websites and AI tools.