• Like
  • Save
Metamoose
Upcoming SlideShare
Loading in...5
×
 

Metamoose

on

  • 1,284 views

 

Statistics

Views

Total Views
1,284
Views on SlideShare
1,249
Embed Views
35

Actions

Likes
0
Downloads
6
Comments
0

3 Embeds 35

http://ynonperek.com 17
http://www.ynonperek.com 17
http://www.linkedin.com 1

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Metamoose Metamoose Presentation Transcript

    • Meta MooseTuesday, September 18, 12
    • About Me Ynon Perek me@ynonperek.com This keynote is available at: http://ynonperek.comTuesday, September 18, 12
    • Meta Who Person Keynote has manyTuesday, September 18, 12
    • Meta Who Meta-Person Meta-Keynote Person Keynote has manyTuesday, September 18, 12
    • Meta Class What can my class do ? What does my class know ?Tuesday, September 18, 12
    • Meta Zombie package main; my $z = Zombie->new; while (chomp ( my $that = <> ) ) { my $m = Zombie->meta->find_method_by_name("eat_${that}"); $m->execute($z) if $m; }Tuesday, September 18, 12
    • Real Zombies...Tuesday, September 18, 12
    • Useful Meta MooseX::HasDefaults::RO Assign a meta-role to every attribute which adds: is => ‘ro’ Uses _process_optionsTuesday, September 18, 12
    • Useful Meta MooseX::FollowPBP Automatically set reader and writer to get_name and set_nameTuesday, September 18, 12
    • Useful Meta MooseX::Privacy Private Methods Using metaTuesday, September 18, 12
    • MooseX::Privacy use MooseX::Privacy; has config => ( is => rw, isa => Some::Config, traits => [qw/Private/], ); private_method foo => sub { return 23; };Tuesday, September 18, 12
    • A few more package MyApp; use MooseX::Singleton; MooseX::Singleton package main; MooseX::YAML my $instance = MyApp->instance; my $same = MyApp->instance;Tuesday, September 18, 12
    • Meta MeTuesday, September 18, 12
    • What I Had Quote Video KeynoteTuesday, September 18, 12
    • What I Need Quote Video Keynote admin/ admin/ admin/ quote video keynoteTuesday, September 18, 12
    • The Meta Way has name, isa => Str, required => 1, in_db => 1, form_opts => { type => text_field}; has description, isa => Str, required => 1, in_db => 1, form_opts => { type => textarea_field }; has url, isa => Str, required => 1, in_db => 1, form_opts => { type => text_field}; has category, isa => Str, default => , in_db => 1, form_opts => { type => select_field, options => YPCourse::Category->get_categories, };Tuesday, September 18, 12
    • Q&ATuesday, September 18, 12
    • Photos From zombies (slide 7): http://www.flickr.com/ photos/cwsteeds/4701084069/ gate (slide 10): http:// www.photoxpress.com/stock-photos/rust/ chains/lock/2544705 everything else: http://123rf.comTuesday, September 18, 12