+ All Categories

Week9

Date post: 23-Dec-2014
Category:
Upload: reneedv
View: 192 times
Download: 1 times
Share this document with a friend
Description:
UWERuby Week 9 slides
Popular Tags:
13
Ruby Week 9
Transcript
Page 1: Week9

Ruby

Week 9

Page 2: Week9

Final

Tic-Tac-Toe

Finish it and send a pull request by next class

Page 3: Week9

Projects

Due next class

Demo in class (must be available on RubyGems.org)

Needs Travis Testing and a README (good rdoc and/or wiki are also good)

Page 4: Week9

Agenda

Control

Exceptions

Mocks and Stubs

rDoc

Page 5: Week9

Control

Controlling the flow of your application

BEWARE: if-else-death, Switch-Statement-Smell (http://c2.com/cgi/wiki?SwitchStatementsSmell)

Page 6: Week9

Conditionals

if, else

unless, else

and && (BEWARE: precedence!!)

or || (BEWARE: precedence!!)

||=

conditional ? then : else

Page 7: Week9

Loop-de-Loop!

while

until

times

Page 8: Week9

Exceptional Ruby!

Begin, raise, Rescue, End

Catch, throw

Exceptional Ruby:

http://exceptionalruby.com/

Page 9: Week9

Mocks & Stubs

http://rubydoc.info/gems/rspec-mocks/frames

In the tic-tac-toe-steps.rb

Page 10: Week9

rDoc

gem install rdoc

rdoc test.rb

http://rdoc.sourceforge.net/doc/index.html

Page 11: Week9

Questions?

?????????

Page 12: Week9

Hang Out Time

Tic-Tac-Toe Questions

Final Gem Questions

Fun Trivia Questions

Page 13: Week9

For Next Week

Submit Tic-Tac-Toe

Deploy your gem to RubyGems.org

E-mail me any feedback, questions, or additional topics/gems you want me to cover


Recommended