Lab 8 Nested Loops and Sorting
- Nested Loops
- Sorting (anonymous functions)
- Map and Filter (anonymous functions)
- Find your partner
- Use CyberDuck to SFTP into one of your accounts on the
- On the server, navigate to the
- Download the
lab08folder to your Desktop (by dragging and dropping it from the CyberDuck window)
- Open Canopy and load the
lab08folder in the Canopy File Browser pane
Pair Programming Tips
1. Recognize that pairing is hard
Pairing is an intense relationship, summoning all your powers of ingenuity, communication, humour, and code. If you find it hard, or even just tiring, it's because it is hard and tiring sometimes. It takes effort to be kind, patient and to help steer someone in the right direction. Respect your partner and be kind. Your job is to help each other learn.
2. Be mindful of your body language
Is your back to your partner? Is your computer screen angled away? Do you make eye contact? You want to create an atmosphere of inclusion so your pair feels respected and encouraged to comment.
3. Is it too quiet between you and your partner?
If there is a lot of silence, that is often a sign that someone feels left behind. Did you take over the keyboard and write a bunch of lines in silence? Yikes! Explain what you type to your partner. Or perhaps you are confused but feel uncomfortable speaking up. Try: "I don't understand this line, can you explain what it does?"
[some content from https://www.fiddlerscode.com/blog/10-tips-for-great-pair-programming]
Table of Contents
- Lab 8 Home
- Part 1: Nested Loops
- Part 2: Sorting
- Part 3: Map/Filter/Lambda practice
- Part 4: [Optional] Visual Nested Loops