Fix CYOA jump
[gitmo/moose-presentations.git] / moose-class / slides / index.html
index fa619d8..ff7b8ab 100644 (file)
@@ -968,6 +968,7 @@ sub BUILD {
   <ul>
     <li>Technically it's a hash reference</li>
     <li><span class="wrong">If you <em>ever</em> treat it as one <strong>you are doing it wrong!</strong></span></li>
+    <li>Moose probably provides a feature to do what you need</li>
   </ul>
 </div>
 
@@ -1053,7 +1054,7 @@ use Moose;
 
 <span class="current incremental">extends 'Person';</span>
 
-<span class="incremental">override</span> work =&gt; sub {
+<span class="incremental">override</span> <span class="incremental">work</span> =&gt; sub {
     my $self = shift;
 
     die "Pay me first"
@@ -1329,7 +1330,7 @@ print $person-&gt;full_name
   <h1>Roles in Practice</h1>
 
   <ul>
-    <li>Consuming a role =~ inlining the role</li>
+    <li>Consuming a role &#x2248; inlining the role</li>
   </ul>
 </div>
 
@@ -1634,7 +1635,7 @@ requires 'compare';
     <li>Human <em>@ISA</em> Animal</li>
     <li>Human <em>does</em> Toolmaker (as <em>does</em> Chimpanzee)</li>
     <li>Car <em>@ISA</em> Vehicle</li>
-    <li>Car <em>does</em> HasEngine</li>
+    <li>Car <em>does</em> Destroyable</li>
   </ul>
 </div>
 
@@ -1825,22 +1826,6 @@ has packages =&gt; (
 </div>
 
 <div class="slide">
-  <h1>What if I Want to Share?</h1>
-
-  <pre><code>package Person;
-use Moose;
-
-my $highlander_bank =
-    Bank-&gt;new(
-        name =&gt; 'Clan MacLeod Trust' );
-
-has bank =&gt; (
-    is      =&gt; 'rw',
-    default =&gt; sub { $highlander_bank },
-);</code></pre>
-</div>
-
-<div class="slide">
   <h1>Builder</h1>
 
   <ul>
@@ -2045,15 +2030,7 @@ Person-&gt;new( <span class="wrong">shoes =&gt; Shoes-&gt;new</span> );</code></
 
   <ul>
     <li>By default, subclasses inherit attribute as-is</li>
-    <li>Can change some attribute parameters in subclasses
-      <ul>
-        <li>default</li>
-        <li>builder</li>
-        <li>required</li>
-        <li>lazy</li>
-        <li>others we've not yet covered</li>
-      </ul>
-    </li>
+    <li>Can change most attribute parameters in subclasses</li>
   </ul>
 </div>   
 
@@ -2181,8 +2158,9 @@ has first_name =&gt; (
 
   <ul>
     <li>An attribute's constructor name can be changed with <code>init_arg</code></li>
+    <li>Can set <code>init_arg</code> to <code>undef</code></li>
     <li>A subclass can alter its parents' attributes</li>
-    <li>Attribute accessor names can be changed</li>
+    <li>Accessor naming scheme can be changed</li>
   </ul>
 </div>
 
@@ -2587,15 +2565,12 @@ Item
   <h1>Bool</h1>
 
   <h2>True</h2>
-  <pre><code>1
-924.1
-'true'
-{}</code></pre>
+  <pre><code>1</code></pre>
 
   <h2>False</h2>
   <pre><code>0
-0.0
 '0'
+''
 undef</code></pre>
 
   <ul>
@@ -3555,7 +3530,7 @@ Iterate til this passes all its tests</pre>
   </p>
 
   <p>
-    Otherwise, jump to slide 269 ...
+    Otherwise, jump to slide 268 ...
   </p>
 </div>
 
@@ -3568,7 +3543,7 @@ Iterate til this passes all its tests</pre>
 
   <ul>
     <li><strong>Not comprehensive</strong></li>
-    <li>152 MooseX distributions on CPAN as of 02/02/2010</li>
+    <li>177 MooseX distributions on CPAN as of 09/21/2010</li>
     <li>Some of them are crap</li>
   </ul>
 </div>
@@ -3781,7 +3756,7 @@ with HasCollection =&gt; { type =&gt; 'Int' };</code></pre>
     <li>mailing list - <a href="mailto:moose@perl.org">moose@perl.org</a></li>
     <li>Slides and exercises are in Moose's git repo:
         <br />
-        <span style="font-size:80%; white-space: nowrap">git://jules.scsys.co.uk/gitmo/moose-presentations</span></li>
+        <span style="font-size:80%; white-space: nowrap">git://git.moose.perl.org/moose-presentations/moose.git</span></li>
   </ul>
 </div>