Week9

348 views
265 views

Published on

UWERuby Week 9 slides

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
348
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Week9

  1. 1. RubyWeek 9
  2. 2. FinalTic-Tac-ToeFinish it and send a pull request by nextclass
  3. 3. ProjectsDue next classDemo in class (must be available onRubyGems.org)Needs Travis Testing and a README(good rdoc and/or wiki are also good)
  4. 4. AgendaControlExceptionsMocks and StubsrDoc
  5. 5. ControlControlling the flow of your applicationBEWARE: if-else-death, Switch-Statement-Smell (http://c2.com/cgi/wiki?SwitchStatementsSmell)
  6. 6. Conditionalsif, elseunless, elseand && (BEWARE: precedence!!)or || (BEWARE: precedence!!)||=conditional ? then : else
  7. 7. Loop-de-Loop!whileuntiltimes
  8. 8. Exceptional Ruby!Begin, raise, Rescue, EndCatch, throwExceptional Ruby: http://exceptionalruby.com/
  9. 9. Mocks & Stubshttp://rubydoc.info/gems/rspec-mocks/framesIn the tic-tac-toe-steps.rb
  10. 10. rDocgem install rdocrdoc test.rbhttp://rdoc.sourceforge.net/doc/index.html
  11. 11. Questions??????????
  12. 12. Hang Out TimeTic-Tac-Toe QuestionsFinal Gem QuestionsFun Trivia Questions
  13. 13. For Next WeekSubmit Tic-Tac-ToeDeploy your gem to RubyGems.orgE-mail me any feedback, questions, oradditional topics/gems you want me tocover

×