# Pair Programming & Collaboration > Eighth graders learn to code together using pair programming — one partner "drives" (types) while the other "navigates" (guides), then they swap. Good… **Computer Science** | **Grade 8** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g8-cs-collaboration.html* Eighth graders learn to code together using pair programming — one partner "drives" (types) while the other "navigates" (guides), then they swap. Good collaboration means listening, explaining, and sharing credit. They sort good teamwork from poor, then pair up to code. **Copy link** works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment. ## Everything you need before the bell rings ### Learning Objectives Students will be able to… - Use **pair programming**. - Swap **driver & navigator**. - Communicate & **share credit**. - Collaborate well. How do programmers work well together on the same code? ## Good Collaboration, or Poor? Project this and sort each into Good collaboration or Poor. ## 50 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Two at One Keyboard How can two people code at ONE computer without chaos? #### 👩‍🏫 Teacher Moves - Pose the question. - Share ideas. - Set the goal. #### 🎒 Student Actions - Think. - Share. - Get ready. ### Use — Pair Programming Students learn. #### 👩‍🏫 Teacher Moves - Send students to Good Collaboration or Poor? - Sort each one. - Note driver & navigator. #### 🎒 Student Actions - Sort. - Say. - Note it. ### Modify — Practice Students practice. #### 👩‍🏫 Teacher Moves - Pick driver & navigator roles. - Navigator guides, driver types. - Swap roles. #### 🎒 Student Actions - Roles. - Guide. - Swap. ### Create — Create Students apply. #### 👩‍🏫 Teacher Moves - Pair-program a small task. - Explain your thinking. - Share the credit. #### 🎒 Student Actions - Pair. - Explain. - Share. ### Reflect — Reflect Students close. #### 👩‍🏫 Teacher Moves - What is pair programming? - Name a good-teamwork move. - Complete the exit ticket. #### 🎒 Student Actions - Say it. - Name one. - Complete the exit ticket. ## Built to the standards you report on Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students. Distribute tasks and collaborate (pair programming). Incorporate and build on others’ work. Document and communicate in teams. Contribute constructively to teams. ## One lesson, every learner ### Multilingual Learners - Good/poor teamwork cards. - Frame: "the navigator ___." - Model roles. ### Support & Access - Sort good vs poor only. - Use 4 behaviors. - Try a short pairing. ### Stretch & Extend - Give a code review. - Rotate in a trio. - Set team norms. ### What to gather - 📽️Screen / board - 🤝Teamwork cards - 💻Good Collaboration or Poor? - 💻Shared computers - 📓Notebooks - 🎫Exit-ticket slips ### Key terms - **pair programming**: two coding at one computer - **driver**: the partner who types - **navigator**: the partner who guides - **collaboration**: working together well - **communicate**: share ideas clearly - **swap**: trade roles - **credit**: recognizing others’ work - **code review**: checking each other’s code ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Reflect: pair programming & collaboration. Have students pair-program a small task, swapping roles. A printable roles sheet is in the CS library. ## Check your understanding **1. What does “pair programming” mean?** - checking each other’s code - two coding at one computer *(correct)* - share ideas clearly - recognizing others’ work “pair programming” means: two coding at one computer **2. Which word means: “the partner who types”?** - driver *(correct)* - swap - communicate - code review “driver” means: the partner who types **3. What does “navigator” mean?** - the partner who guides *(correct)* - checking each other’s code - two coding at one computer - the partner who types “navigator” means: the partner who guides **4. Which word means: “working together well”?** - collaboration *(correct)* - code review - driver - credit “collaboration” means: working together well **5. What does “communicate” mean?** - the partner who types - share ideas clearly *(correct)* - checking each other’s code - recognizing others’ work “communicate” means: share ideas clearly **6. Which word means: “trade roles”?** - collaboration - driver - swap *(correct)* - navigator “swap” means: trade roles ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g8-cs-collaboration.html All lessons: https://lessonplans.k12academics.com/