Aug
How we decide what to have for lunch
Filed Under (Development, Misc, Personal) by Emad Alashi on 02-08-2008
Tagged Under : Development, lunchpoll
Do you go through the same, time-consuming, frustrating discussion with your colleagues when you want to decide what to have for lunch? well…this is exactly what we have been going through where I work.
To solve the problem (partially, because humans can never totally agree!
), I made a small, quick and dirty web application; LunchPoll.
The user (Active Directory user, it works on Windows Authentication) would go to the home page, select the available poll:
Then a list of all available restaurants will show up. The restuarants’ names are in arabic, so don’t be frightned if you didn’t understand the names
:
The user will assign a weight for each restaurant depending on his taste for today, and no two restaurants can have the same weight.
And after submitting the poll, the user will see the results; all the restaurants will appear, each one with the value of its weigt next to it, along with the voters names who voted for now:
you can download the source code here. bon apetite
p.s. There is no administration interface, so you will have insert restaurants in the Restaurants table, and Insert an entry for each new poll in the Polls table, giving the Status column the value “1″




