Treasure Turtles and Clicky Craziness

by Elliott Hauser

25 May 2017

Recommended Reading

With many concepts, our text doesn’t explain as much as Automate the boring stuff does; check that link for more info on return values and scope.

Questions & Answers

  • Should you commit to the gh-pages branch?
  • Should you merge your own pull requests?
  • When do the magical ‘Fixed #XXX’ or ‘Fixes XXX’ words work?

Peer Code Review

This is where those of you who have been commenting, reflecting, and pull request titling will win friends because of it. And if the purpose for and audience of these hasn’t quite sunk in yet, reading other people’s code is the best way for it to.

Pair up

  • Review & merge your partner’s PR (opening issues if there are any)
  • View their live post on the site (merge any PRs they need to do to get the post to display)
  • Fill out the Turtle Peer Review form.]
  • Submit
  • Discuss with your partner
  • Group up & compare notes. Show off the partner you reviewed’s code to the group
  • What did you you learn?
  • Show off a partner’s work in front of class

Next Time

Lots of work over the break! Pace yourself. Start early. We’ve got to keep going so we don’t fall behind.

  • Chapter 5 reading & exercises. We’ll finally go over loops! Woot.
  • Chapter 6 reading & exercises. Strings aka text. Super fun.
  • Chapter 8 reading & exercises. Loops
  • Recommended: Automate the Boring Stuff Lists and loops.

Why cram all these together? Well, they’re related. Loops are loops over a list. The familiar range(4) produces a list. for i in range(4) produces the list [0,1,2,3], assign each of them to i and completes the code in the for block.

Strings are just lists of characters, with additional methods (like .format() and .contains()) built in for our convenience.

So, it’s a lot of material, but doing it over a long weekend should help it all sink in.

Elliott Hauser is a PhD Student in information science at UNC Chapel Hill. He's hacking education as one of the cofounders of Trinket.io. Find Elliott Hauser on Twitter, Github, and on the web.