|Ned Batchelder : Blog | Code | Text | Site|
» Home : Blog : October 2012
I've been organizing the Boston Python user group for a few years now, and I like it a lot. Except for ordering pizza. But finally I've brought some technology to bear on the problem!
First, I've taken a poll of people RSVP'ing for tonight's project night, so I now have an empirical basis for deciding what fraction of the pizzas should be meat, vegetable, cheese, or vegan. Suprise (to me): vegetable wins.
Second, I've written what may be the world's most useful Python program: pizza.py!
"""How many pizzas do we need?"""
The hard truth here is the Meetup Universal Constant. The MUC has been empirically determined, and says that no matter how much you wheedle people to show up if they say they will, and vice-versa, about one-third of the RSVPs will not attend. This number has proven remarkably stable over the 25 or so events that we've measured.
As an example, for tonight's event, we have 127 RSVPs:
How many RSVPs? 127
Your numbers may vary. Perhaps Boston is a vegetarian hotbed compared to where you are. Maybe your city has more-predictable weather and fewer people abandon their intention to attend. Tweak pizza.py as you see fit!