[OT] programming question

Matt Wilson codebrewery at gmail.com
Thu Apr 26 13:09:56 BST 2007


On 4/25/07, Nicholas Clark <nick at ccl4.org> wrote:
>     <p>What colour should the bikeshed be?</p>
>     <input type="hidden" name="question" value="42">
>     <input type="radio" name="guess" value="5">Brown
>     <input type="radio" name="guess" value="3">Green
>     <input type="radio" name="guess" value="1">Orange
>     <input type="radio" name="guess" value="4">Blue
>     <input type="radio" name="guess" value="2">Black
>
> fairly quickly gives the game away that the answer with value 1 is always
> correct.

Why not go with the following (simple) solution:

     <p>What colour should the bikeshed be?</p>
     <input type="hidden" name="question" value="42">
     <input type="radio" name="guess" value="Brown">Brown
     <input type="radio" name="guess" value="Green">Green
     <input type="radio" name="guess" value="Orange">Orange
     <input type="radio" name="guess" value="Blue">Blue
     <input type="radio" name="guess" value="Black">Black

Or is that too straight forward? :)


More information about the london.pm mailing list