raccoon commented on a Page, Survey Script  -  Mar 12, 2010

I like the approach taken in this script, as it's a throwback to how we used to write code in simpler languages. You have one event to handle all input, and a simple set of case statements. No bells, no whistles, easy to implement, easy to expand.

Of course, with 12 times the code, you could add all sorts of duplicate-vote checking, flood prevention, time to automatically close voting, ballot secrecy, etc etc. But this snippet is a good example of a smart computer science student.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.