A Study of Iteration and Enumberables

As a beginner in ruby, we generally take iteration and enumeration for granted. Methods like each and collect gratefully abstract away the majority of logic required for iteration and enumeration. We get an iterator or yield for free in our blocks and have no idea how.

In this quick 30 minute talk, Avi Flombaum will build every iterator and enumerator in ruby just using the core loop keyword. We'll learn how to implement the while keyword using loop, then on top of that we'll implement an each and learn about yield and blocks, on top of that we'll implement collect, and then we'll implement the higher level enumerators like inject, any?, all?, none?, select, and reject.

A basic understanding of iteration and then ruby will be helpful.

We'll hang out after the talk and get a chance to network.

I'm going to try to schedule 1 non-flatiron related event a month from here on in. See you all soon!

PS - we're only charging $1 to make RSVP's meaningful. all proceeds are donated to wikipedia.

Also, space gets a little tight, so it might be some standing room.

Join or login to comment.

    • Kevin M.

      I was't able to make it on Monday, thanks for posting this!

      July 10, 2013

  • A former member
    A former member

    I went from vague understanding to getting the purpose of interators and why collect is beautifully abstract.

    July 10, 2013

  • A former member
    A former member

    When Avi built every iterator in Ruby - from while to any? - using just the loop keyword, it’s like something just clicked in my head. All of a sudden I knew how my code was working, and not just that it achieved a particular result.

    July 10, 2013

  • Vietnhi P.

    Awfully clear and to the point :)

    July 8, 2013

  • Flatiron S.

    It's gonna be crowded but if you don't mind standing in the back there should be room. Donate a $1 to something

    July 7, 2013

  • Vietnhi P.

    Pay online where, how? Can I just hand over the cash to someone and let him worry about it? :)

    July 7, 2013

  • Scott

    Hey all, just wanted to let you know I can't attend the meetup. I have to leave for an unexpected trip tomorrow morning. Sorry for dropping out last minute but if anyone is on the waiting list, please take my spot! Thanks : )

    July 7, 2013

  • Victor R.

    How do I get on the wait list?

    July 7, 2013

  • A former member
    A former member

    may i attend this event or get on the waiting list? just started learning rails and would love to get to know the group.

    July 2, 2013

  • A former member
    A former member

    I'm on a journey to become a full stack developer.

    June 14, 2013

25 went

Your organizer's refund policy for A Study of Iteration and Enumberables

Refunds are not offered for this Meetup.

Our Sponsors

  • Digital Ocean - VPS Host

    DigitalOcean.com is an amazing VPS host. Use NYCONRAILS10 for a discount

  • CodeSchool

    9$ for your first month access to the best interactive learning online!

People in this
Meetup are also in:

Imagine having a community behind you

Get started Learn more
Henry

I decided to start Reno Motorcycle Riders Group because I wanted to be part of a group of people who enjoyed my passion... I was excited and nervous. Our group has grown by leaps and bounds. I never thought it would be this big.

Henry, started Reno Motorcycle Riders

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