Chicago Ruby Hack Night - Ping Pong Fizz Buzz
Details
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 (http://files.meetup.com/288361/testunit_example.rb) 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 (http://files.meetup.com/288361/rspec_example.rb) 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 (http://windycityrails.org/).
(*) FizzBuzz is sometimes used as a test (http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html) to see if job applicants can code at all.
