Ned Bachelder, who organizes a local get-together of programmers who use Python, was getting tired of trying to figure out how to feed the herd. So he's written a script he calls pizza.py to give him an answer.
Neighborhoods:
Topics:
Free tagging:
Like the job UHub is doing? Consider a contribution. Thanks!
Ad:
Comments
don't reinvent the wheel / don't solve people problems with tech
By anon
Wed, 10/10/2012 - 11:54am
1 - Tell people to STFU, grow up, and stop being special snowflakes. Simplify the order.
2 - www.doodle.com. Hey look, RSVP and pizza choice, all in one. How about that.
PS: http://derspatchel.livejournal.com/311032.html
You must be a joy at parties
By adamg
Wed, 10/10/2012 - 12:12pm
Sheesh. How long do you think it would take somebody who writes Python code for a living to write something like that script? And do you think his tongue might, just maybe, possibly, have been firmly in his cheek when he posted that?
I don't write python often
By MattyC
Wed, 10/10/2012 - 1:14pm
I don't write python often and I'm pretty sure I could burn 5 minutes and get that done. Not to mention the fact that it also counts as not doing work, which is the best thing you can do at work besides work.
This is really very simple.
By Registration Pending
Wed, 10/10/2012 - 3:18pm
Under all the tongue in cheek use of technology, the underlying math here is staggeringly simple. It says to buy about one pizza per five reservations, diveeing up the pizza types by a fixed ratio, rounding such that you buy at least one pizza of each type. Writing this as a Python script serves two purposes: it makes it slightly easier to split up the numbers in a consistent way, and it allows for stupid puns.
"Don't Solve Problems with Tech"
By shiny_things_b
Wed, 10/10/2012 - 4:43pm
... Just go to this Web site instead and use that!
Did you read the code?
By Nancy
Wed, 10/10/2012 - 12:28pm
With all due respect to Mr. Bachelder I would estimate that it took him about 15 minutes to write that code and that he got a little bit of fun out of it.
As a former perl developer, I think the idea is kind of cute and amusing.
Not to mention...
By merlinmurph
Wed, 10/10/2012 - 12:30pm
...that the coolest part is the filename - pizza.py
I totally missed that!
By Nancy
Wed, 10/10/2012 - 12:52pm
Guys (and gals) like that are usually pretty clever. Well played, Ned. Well played.
I wish
By anon
Wed, 10/10/2012 - 2:26pm
he'd made a website calculator out of it, so I can use it next time I order pizza.