Re: CGI.pm

[prev] [thread] [next] [lurker] [Date index for 2006/06/27]

From: Nik Clayton
Subject: Re: CGI.pm
Date: 14:03 on 27 Jun 2006
OK, I know it doesn't lessen the hate, but

Aaron Crane wrote:
>   print hidden('field_name', $field_value);
[...]
>   print hidden(
>       -name     => 'field_name',
>       -default  => $field_value,
>       -override => 1,
>   );
[...]
> This API is just astoundingly fuckwitted.  I can't conceive of any situation
> in which it would be desirable behaviour, and it has caused huge numbers of
> bugs in the software I maintain.  And that's in spite of the fact that I
> know about this brokenness -- it's so stupid that it's apparently impossible
> to remember to use the ridiculous workaround.

   sub hidden {
       return CGI::hidden(-name     => $_[0],
                          -default  => $_[1],
                          -override => 1,
       );
   }

?

N

Generated at 21:00 on 05 Jul 2006 by mariachi 0.52