Skip to content

Instantly share code, notes, and snippets.

@tooky
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tooky/b2f6f007f56fb2a372f0 to your computer and use it in GitHub Desktop.
Save tooky/b2f6f007f56fb2a372f0 to your computer and use it in GitHub Desktop.
otb-homework-mar-2015
  1. Ruby - what is bundler? - Tom Clark
  2. git - tags vs branches - Tom Bates
  3. git - rebase vs merge - Tom Altree
  4. Ruby modules and include, extend, prepend - Duncan Smith
  5. Ruby's Enumerable and Enumerators - John Foulkes
  6. Ruby's blocks, procs and lambdas - Chris Rigby
  7. Inheritance vs Composition, with examples in Ruby - James Walsh

Week 1 - Homework

  1. Complete the remaining exercises (note: you can run each file individually using rspec <filename>)
  • Work through them in the following order:
    • spec/open_classes_spec.rb
    • spec/dice_project_spec.rb
    • spec/inheritance_spec.rb
    • spec/modules_spec.rb
    • spec/scope_spec.rb
    • spec/class_methods_spec.rb
    • spec/message_passing_spec.rb
    • spec/proxy_object_project_spec.rb
    • spec/to_str_spec.rb
  1. write a 10 minute presentation on your selected topic
  2. Use rspec to test drive the harry potter kata

Week 2

  1. Take another stab at the bowling kata. Keep in mind the idea of shameless green - focus on working code first, then use refactoring to improve the design.
  • Commit frequently and use the commit messages to document your progress.
  • Create a pull request back to the main repository with your solution.
  • Suggested test cases:
    • All Gutters (20*0 => 0)
    • All Singles (20*1 => 20)
    • All Spares (21*5 => 150)
    • All Strikes (12*10 => 300)
    • Mixed Game ([2,4,5,3,1,6,8,2,0,2,6,4,10,7,3,0,10,6,4,7] => 116)
  1. Write a blog post explaining Ruby Method dispatch, reference include, extend, prepend and super (if you don't have a blog you can just publish a gist.
  2. Read Think Like (a) Git and create a short presentation about the thing you found most interesting, confusing or suprising.
  3. As a group - watch Sandi Metz's Magic Tricks of Testing, split into two groups and produce posters showing your most important takeaways.
<iframe width="560" height="315" src="http://www.youtube.com/embed/URSWYvyc42M" frameborder="0" allowfullscreen></iframe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment