X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=moose-class%2Fslides%2Findex.html;h=e2e889a1a72d032d6527ae0358e029615f2400dc;hb=d7deb8a91eda73a9252643bc0b221dd6e5d34482;hp=7759fd3ed919f6f5594aad5db2d8e791d6080212;hpb=62e6bee07fceae46a1910ff3c663e794a08733c8;p=gitmo%2Fmoose-presentations.git diff --git a/moose-class/slides/index.html b/moose-class/slides/index.html index 7759fd3..e2e889a 100644 --- a/moose-class/slides/index.html +++ b/moose-class/slides/index.html @@ -71,7 +71,8 @@ img#me05 {top: 43px;left: 36px;} @@ -976,6 +977,7 @@ sub BUILD { @@ -1039,6 +1041,7 @@ extends 'LWP'; @@ -1525,7 +1528,7 @@ use Moose; with 'HasSize'; -has size => ( is => 'ro' ); +has size => ( is => 'ro' );
@@ -1539,7 +1542,7 @@ requires 'size'; package Shirt; use Moose; -has size => ( is => 'ro' ); +has size => ( is => 'ro' ); with 'HasSize';
@@ -1561,9 +1564,9 @@ with 'HasSize';
package Comparison;
 use Moose;
 
-has [ 'left', 'right' ] => (
-    is   => 'ro',
-    does => 'Comparable',
+has [ 'left', 'right' ] => (
+    is   => 'ro',
+    does => 'Comparable',
 );
 
@@ -1860,7 +1863,7 @@ has bank => ( sub _build_bank { my $self = shift; return Bank->new( - name => 'Spire FCU' ); + name => 'Spire FCU' ); } @@ -1927,7 +1930,7 @@ has shoe_size => (
has shoes => (
     is      => 'ro',
     lazy    => 1,
-    builder => '_build_shoes',
+    builder => '_build_shoes',
 );
 
 sub _build_shoes {
@@ -2000,7 +2003,7 @@ has account => (
   
package Person;
 use Moose;
 
-has shoe_size => (
+has shoe_size => (
     is       => 'ro',
     init_arg => 'foot_size',
 );
@@ -2018,7 +2021,7 @@ print $person->shoe_size;
package Person;
 use Moose;
 
-has shoes => (
+has shoes => (
     is       => 'ro',
     init_arg => undef,
 );
@@ -2752,7 +2755,7 @@ duck_type Car => qw( run break_down );

Subtype Shortcuts - enum

use Moose::Util::TypeConstraints;
-enum Color => qw( red blue green ) );
+enum Color => qw( red blue green );

@@ -3018,9 +3021,9 @@ coerce ArrayOfInt use MyApp::Types qw( ArrayOfInt ); -has transaction_history => ( - is => 'rw', - isa => ArrayOfInt, +has transaction_history => ( + is => 'rw', + isa => ArrayOfInt, ); @@ -3204,7 +3207,7 @@ $alice->friend($bob); has lungs => ( is => 'ro', - isa => 'Lungs', + isa => 'Lungs', handles => [ 'inhale', 'exhale' ], ); @@ -3535,10 +3538,6 @@ print Person->meta
-

Questions?

-
- -

Exercises

# cd exercises
@@ -3549,28 +3548,17 @@ Iterate til this passes all its tests
-

Questions?

-
+

CYOA

-
-

The End

-
- -
-

More Information

+

+ If there is time, keep going ... +

- +

+ Otherwise, jump to slide 269 ... +

-

Bonus: A Brief Tour of MooseX

@@ -3762,8 +3750,43 @@ use Moose; with HasCollection => { type => 'Int' }; +
+

Questions?

+
+ +
+

Moose-using Modules

+ +

+ For further reading, a few modules which use Moose ... +

+ + +
+ +
+

More Information

+ + +
+
-

The End (Really)

+

The End