Session facilitated by Philip Saa (@cowglow)_
The goal of the session was to refactor the loops in my SecretSanta project.
The question was, how would I sort a list of people in a Secret Santa game and ensure that siblings (i.e. people with the same last name) wouldn't be matched with one another. So Luke Skywalker wouldn't give a gift to his sister Leia Skywalker.
We spend our time extracting the loops into their own individual functions. And concerns arouse for code sniffing issues. But Willy, had an idea to simplify the whole thing. Only fall back was that we need to pop entries from the participant array as we pair them with their secret Santa candidate.
Changes are under a different branch of the repo. And you're welcome to fork it and create a pull request with your changes or suggestions!