AP Computer Science Principles · Creative development
Collaboration
1Why collaborate?
Computing innovations are usually built by teams. Collaboration brings together people with different skills, backgrounds and perspectives.
Benefits:
- Diverse perspectives help find problems and ideas one person would miss, and reduce bias in a design.
- Shared workload lets larger projects be completed.
- Different expertise: one member may be strong at interface design, another at testing.
An innovation used by many kinds of people is more likely to meet their needs if people like them helped to design it.
Check yourself
Why does a diverse development team tend to produce better software?
Show the answer
Different perspectives help spot problems and needs others would miss
Perspectives reduce blind spots and bias.
2Ways of collaborating
- Pair programming: two programmers share one computer. The driver types; the navigator reviews each line and thinks ahead. They swap roles often.
- Consulting users: interviews, surveys and observing users to gather requirements.
- Online tools: shared documents, version control systems that track changes and let several people work on the same code without overwriting each other.
- Code reviews: teammates read and comment on each other's code before it is accepted.
a school app team.
- Survey students to learn which features they want.
- Split work: one pair builds the timetable screen, another the notifications.
- Use version control so both pairs can merge their work safely.
Check yourself
In pair programming, the navigator:
Show the answer
Reviews the code as it is written and plans ahead
Driver types; navigator reviews.
3Communication and conflict
Good collaboration needs clear communication: agreed goals, defined roles, regular check-ins and respectful disagreement.
Interpersonal skills matter as much as technical ones: listening, giving constructive feedback and compromising.
When team members disagree, discussing the reasons and testing the options with users is better than one person deciding alone.
Check yourself
Which practice best supports a team working on the same program files?
Show the answer
Using a version control system to track and merge changes
Tracks who changed what.
4Acknowledging contributions
When a program uses code, media or ideas from others, the author should acknowledge the source, for example in program comments. In the AP Create performance task, any code written by someone else (including a partner or a library) must be credited.
Check yourself
When using a code segment written by someone else, a programmer should:
Show the answer
Acknowledge its source, e.g. in a comment
Give credit.
5Going deeper: how teams actually work together, and why diversity improves the product
Why collaborate? A computing innovation built by one person reflects one person's knowledge, experience and blind spots. A team brings different perspectives, skills and backgrounds, which helps to:
- find more ideas and better solutions;
- catch errors earlier (someone else spots what you missed);
- reduce bias, because people with different experiences notice different problems;
- build something that works for more kinds of users.
Case in point: early voice assistants recognized some accents far better than others, and some early fitness trackers and automatic taps worked poorly on darker skin. Teams that had tested with a wider range of people, or included them, would have noticed sooner.
Models of collaboration
- Pair programming: two people at one computer. The driver types; the navigator reviews each line, thinks ahead and suggests improvements. They swap roles regularly. It produces fewer bugs and spreads knowledge.
- Think–pair–share: think alone, discuss with a partner, then share with the group.
- Code review: someone other than the author reads the code before it is accepted.
- Dividing the work: the program is split into parts (modules or procedures) built by different people and then combined. This needs agreed interfaces: what each part takes in and gives back.
Tools
- Shared documents and online editors: several people edit at once.
- Version control (such as Git): keeps a history of every change, lets people work on separate copies and merge them, and makes it possible to go back when something breaks.
- Messaging, video calls and issue trackers: for communication and for keeping track of who is doing what.
- Online tools let people collaborate across time zones without meeting.
Interpersonal skills matter as much as technical ones:
- Communication: explain your ideas and your code clearly.
- Consensus building: reach decisions the whole group can support.
- Conflict resolution: disagree about ideas, not people.
- Negotiation and willingness to compromise.
- Giving and receiving constructive feedback.
Collaboration with users: the people who will use a program are part of the process.
- Gather requirements through interviews, surveys and observation.
- Show early versions and collect feedback.
- Test with users who differ in age, ability, language and experience.
Developers who consult users build what is needed, not what they assume is needed.
Crowdsourcing: obtaining input, ideas, data or funding from a large number of people, usually online. Examples: a collaboratively written encyclopedia, citizen-science projects in which volunteers classify galaxies or count birds, open-source software, and crowdfunding.
Giving credit: when you use code, media or ideas from someone else (a partner, a library, an online source), acknowledge it, in a comment in the code or in the documentation, naming the author and source. Presenting others' work as your own is plagiarism.
In the Create performance task: you may develop your program with a partner, but parts of the work must be your own. Any code written by a partner or taken from another source must be cited, and you should be able to explain every part of the program you submit.
Worked example (applying the ideas): a team of four classmates is building an app to help students find study partners. Suggest three collaborative practices and say what each achieves.
- Pair programming on the matching algorithm: fewer logic errors, and two people understand the hardest part.
- Interviewing students from different year groups and with different needs: requirements reflect real users, including those the team might overlook.
- Version control with code review: changes are tracked, can be undone, and are checked by a second person before being merged.
Pitfalls
- One person doing everything: no real collaboration, and no check on their mistakes.
- Dividing work with no agreed interfaces: the parts do not fit together.
- Poor communication: duplicated or contradictory work.
- A team with identical backgrounds: shared blind spots.
Common mistakes in answers
- Saying only "it is faster." The strongest reasons are quality, fewer errors and reduced bias.
- Describing pair programming as two people writing separate code.
- Forgetting that users are collaborators too.
Check yourself
In pair programming, what does the navigator do?
Show the answer
Reviews the code as it is typed and suggests improvements
The driver types; the navigator reviews, and they swap roles regularly.
6For top marks
- Link benefits of collaboration to specific outcomes: fewer bugs, a design that serves more users, less bias.
- Know the roles in pair programming and why they help (continuous review catches errors early).
- Remember that collaboration includes users and stakeholders, not just programmers.
- Credit others' work explicitly.
"Including visually impaired testers led the team to add screen-reader labels, making the app usable by more people."
Check yourself
Gathering feedback from intended users during development mainly helps to:
Show the answer
Make sure the program meets users' actual needs
Requirements come from users.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera