addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1linklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Chicago Ruby Hack Night - Ping Pong Fizz Buzz

  • 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.

Join or login to comment.

  • snex

    To whoever left the glass bowl with the red lid - if you ever want to see your bowl again, leave $1 million in small unmarked bills under the cherry tree in grant park. Or just email me.

    August 14, 2013

  • Andrew L.

    I'm having car problems. Might be late

    August 14, 2013

    • Derrick C.

      It's the carburetor Drew! Whats your status?

      August 14, 2013

  • A former member
    A former member

    Won't be able to make it tonight, feeling a little under the weather. Have fun for me!

    August 14, 2013

  • Jay W.

    Jay Wilburn

    August 14, 2013

  • Michael D.

    Michael Davis will be there.

    August 14, 2013

  • Ifu A.

    Ifunanyachukwu Aniemeka

    August 14, 2013

  • A former member
    A former member

    If I think I might be a few minutes late, is it still OK to come?

    August 13, 2013

    • snex

      Being late is fine - security will have your name on file.

      August 13, 2013

    • A former member
      A former member

      Clearly not. All the beer will be gone.

      1 · August 13, 2013

  • snex

    Hello, I will be hosting this event at Enova tomorrow. Can everybody who uses a pseudonym please post their real names so that we can have security let you in tomorrow evening. Thanks!

    August 13, 2013

  • A former member
    A former member

    Is there a place online where solutions to previous Hack Night problems are posted?

    July 30, 2013

    • Ginny H.

      We don't do anything formally since this is mostly an exercise to be done in person. Anyone who wants to share their solution puts a link to it in comments.

      August 13, 2013

  • A former member
    A former member

    iOS Developer interested in learning Ruby.

    August 7, 2013

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy