Aug 14, 2013 · 6:30 PM
Come on out and hack!
We'll pair up to work on a Ruby problem using the ping pong pairing method for test-driven development. All Rubyists are welcome, including beginners. Bring your laptop with Ruby installed.
The coding problem is simple: Write a program that prints the numbers from 1 through 100. But for multiples of three print “Fizz” instead of the number and for multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”. (*)
The important thing we're doing is practicing TDD and pair programming. We'll use the ping pong technique, where pair A starts by writing one failing test, then pair B writes just enough code to get the test to pass, then pair A writes one failing test, and so on.
If you've never done automated testing before, look at this file for a very simple example to get you started with test/unit. That's included in Ruby so you don't need to install anything else. (If you'd like to try Rspec, and have that gem already installed, see this file for the same very simple example using Rspec.)
Enova Financial, our hosts, will provide food and drink.
WindyCityRails happens September 12-13, 2013. Check out the amazing presenters, and register now. http://windycityrails.org.
(*) FizzBuzz is sometimes used as a test to see if job applicants can code at all.