Hello Ynon,

On 07/07/2012 02:43 AM, ynon perek wrote:
> Got a new Moose keynote ready, targeted at intermediate Moose developers and 
> showing more features of the framework.
> https://speakerdeck.com/u/ynonperek/p/advanced-perl-moose

Nice presentation!  very informative.

At the risk of starting a flamewar, I'll just say that slide 16 (Object State 
Validation) is the epitome of why I dislike the "smart operator":

The code has:
  if ( $self->captain ~~ $self->crew ) {....}

And there's simply no way to know what the heck is being checked, unless you go 
back and see the "crew" is:
  has "crew", isa => 'ArrayRef[str]'

(since it's just an example, the code is tiny, but in a real world module it'll 
be a mess).

Am I missing something? is this really the recommended way of doing stuff?


Also (off topic):
How/where do you find the clipart images for you presentations? they are 
spot-on!
I assume they are also CC-NC - is there some free website for those? 
(openclipart is close, but no dice).

Thanks,
  -gordon
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to