[Wellington-pm] Roundup of last night's meeting ...
Olly Betts
olly at survex.com
Tue Mar 10 20:01:26 PDT 2009
On Wed, Mar 11, 2009 at 02:50:07PM +1300, Brenda Wallace wrote:
> On Wed, Mar 11, 2009 at 2:36 PM, Andrew Chilton <andychilton at gmail.com> wrote:
> > # sorry Srdjan
> > if ( $next_meeting eq '2009-04-14' ) {
> > $not_here++;
> > }
> > else {
> > $attending++;
> > }
>
> I challenge srdjan to re-write that without if statements
> (unless is CHEATING)
And so is ?: I feel (though I don't know what Srdjan's arguments against
if were as I didn't make it last night). This is a drop-in replacement:
{
my $date_bad = ($next_meeting eq '2009-04-14');
$not_here += $date_bad;
$attending += !$date_bad;
}
As for dates, 21st would mean I'd be more likely to attend - I have
another regular engagement on the second Wednesday each month, which
about 6/7 of the time is the day after PM but next month starts on
a Wednesday, so changing to a week earlier puts them adjacent again.
Cheers,
Olly
More information about the Wellington-pm
mailing list