| repak shawahb | |||||
| I like to think of myself as the master of my own destiny | |||||
blogroll |
Wed, 13 Oct 2004 In what appears to be a trend, I've gone and made another software monstrosity for automating something that just doesn't need it. At work, we go out to lunch every day; we call our lunch group "Posse." Many days, we end up going to the same place we went just a few days ago despite being within easy reach of many other good choices. To solve this problem, a former employee had what is jokingly known as "the C program," i.e., a program which would act as an oracle concerning posse location. That former employee, Joe, still goes out to lunch with us, because he now works at a different IC company here in Austin, but "the C program" was lost when he left. You can see where this is going: I volunteered to rewrite it, and in the process ended up making it, ummm, awesome. First of all, it's now supported by a mySQL backend. Second, it's no longer an oracle; instead, it mails everyone at 6:30a with three choices and directs them to a website where they can vote on lunch. At 11:30a, the votes are tallied, the decision is made, and records are updated as appropriate in order to ensure that tomorrow's restaurant choices are sufficiently different from recent choices as to keep us going somewhere new every day. Of course, popularity figures in, tooa place that wins a lot is more likely to be trotted out for the vote than a place that's come in dead last every time. The coolest part of all this is that in writing PosseBot, as I've decided to call it, I ended up teaching myself quite a bit of SQL. In fact, almost all the crunching is done by the database instead of by the perl scripts with which it interfacesand yes, Jim, you're right, it's probably unnecessary, but Goddamnit it's cool to generate a PDF (not the Adobe thing, the 6.041 thing) in SQL. For your amusement:
I rule. [ permalink | 6 comments ] writebacksMay wrote Wow jim wrote
jim wrote
gwax wrote ah SQL Rodin wrote
Gautham wrote
post a comment: |
||||