[Catalyst-commits] r8810 - trunk/examples/CatalystAdvent/root/2008

jester at dev.catalyst.perl.org jester at dev.catalyst.perl.org
Wed Dec 10 13:51:39 GMT 2008


Author: jester
Date: 2008-12-10 13:51:39 +0000 (Wed, 10 Dec 2008)
New Revision: 8810

Modified:
   trunk/examples/CatalystAdvent/root/2008/8.pod
   trunk/examples/CatalystAdvent/root/2008/9.pod
Log:
very light copyedits

Modified: trunk/examples/CatalystAdvent/root/2008/8.pod
===================================================================
--- trunk/examples/CatalystAdvent/root/2008/8.pod	2008-12-10 00:32:51 UTC (rev 8809)
+++ trunk/examples/CatalystAdvent/root/2008/8.pod	2008-12-10 13:51:39 UTC (rev 8810)
@@ -4,15 +4,15 @@
 ACCEPT_CONTEXT.  It's tempting to stuff lots of business logic in your
 Controller, while usually this belongs in your Model.  Although at
 first it seems like more effort to go to the trouble of setting up the
-model correctly, but as your application grows, taking care of design
+model correctly, as your application grows, taking care of design
 like this rapidly pays dividends.
 
 If you need access to a database schema or two in a model, or if you
 need to be able to access C< path_to > or something else that belongs
 in $c, you'll want to use this technique.  First we'll show how to do
-this without L<Moose>, then With L<Moose>.
+this without L<Moose>, then with L<Moose>.
 
-=head2 Without Moose.
+=head2 Without Moose
 
 Here's an example that gives us access to $c->path_to:
 
@@ -41,16 +41,16 @@
  }
 
 Now when you have a subroutine in your model, you can access the
-relevant bit of $c with $self->path_to, $self->schema1 or whatever
+relevant bit of $c with C$self->path_to, $self->schema1 or whatever
 you named your accessor.  This avoids polluting your model with the
 bits of the context object that you don't need, makes your code more
-maintainable, and avoids some nasty gotchas that are to do with
+maintainable, and avoids some nasty gotchas that have to do with
 variable scope.
 
 =head2 Doing the same with Moose
 
-Catalyst 5.8 will use L<Moose>, so it makes sense to use the L<Moose>
-meta-object system to handle these issues for you.
+Catalyst 5.8 will use the L<Moose> meta-object system, so it makes sense
+to use L<Moose> to handle these issues for you.
 
 The code is pretty similar:
 
@@ -65,7 +65,7 @@
 The C< meta > method above is a benefit of L<Moose> (actually
 L<Class::MOP>).  Although this example isn't much clearer with Moose
 than without, for the most part Moose greatly increases the read- and
-write-ability of your code.  see the L<Moose::Cookbook> for many
+write-ability of your code.  See the L<Moose::Cookbook> for many
 examples.
 
 =AUTHORS

Modified: trunk/examples/CatalystAdvent/root/2008/9.pod
===================================================================
--- trunk/examples/CatalystAdvent/root/2008/9.pod	2008-12-10 00:32:51 UTC (rev 8809)
+++ trunk/examples/CatalystAdvent/root/2008/9.pod	2008-12-10 13:51:39 UTC (rev 8810)
@@ -6,10 +6,10 @@
 Graphics::Primitive is a collection of objects that allow you build a 2d "scene".
 The building block of these scenes is a
 <a href="http://search.cpan.org/perldoc?Graphics::Primitive::Component">Component</a>.
-It has a width and height, colors (fore and back), borders, insets and padding.
+It has a width and height, colors (fore and back), borders, insets, and padding.
 A <a href="http://search.cpan.org/perldoc?Graphics::Primitive::Container">Container</a>
 builds on Component and yields a component that can contain other components.  To allow
-for more than plain ol' boxes Graphics::Primitive provides
+for more than plain ol' boxes, Graphics::Primitive provides
 <a href="http://search.cpan.org/perldoc?Graphics::Primitive::TextBox">TextBox</a>,
 <a href="http://search.cpan.org/perldoc?Graphics::Primitive::Canvas">Canvas</a> and
 <a href="http://search.cpan.org/perldoc?Graphics::Primitive::Image">Image</a>.  While
@@ -51,7 +51,7 @@
 
 <p>
 The first step in our document's life is to instantiate a new Graphics::Primitive object and
-set it's width and height.  We'll use Paper::Specs to find the size for our desired output paper.
+set its width and height.  We'll use Paper::Specs to find the size for our desired output paper.
 </p>
 
 =end pod::xhtml
@@ -88,9 +88,9 @@
 <h2>Gussying Things Up</h2>
 
 <p>
-Graphics::Primitive is a color agnostic library.  You might've noticed
-the <tt>use</tt> line above that included <a href="http://search.cpan.org/perldoc?Graphics::Color">Graphics::Color</a>.
-Specifically, the RGB library.  To make the PDF interesting, we can
+Graphics::Primitive is a color-agnostic library.  You might've noticed
+the <tt>use</tt> line above that included <a href="http://search.cpan.org/perldoc?Graphics::Color">Graphics::Color</a>,
+specifically, the RGB library.  To make the PDF interesting, we can
 add a <a href="http://search.cpan.org/perldoc?Graphics::Primitive::TextBox">TextBox</a> component.
 </p>
 
@@ -120,7 +120,7 @@
 <p>
 We've set this TextBox to the Helvetica font family with a size of 45 points and
 a color of black.  We set the text to say hello to whatever name is passed in
-as the first argument.  The horizontal alignment to "center", since headers look
+as the first argument.  The horizontal alignment is set to "center", since headers look
 pretty that way.
 </p>
 <p>
@@ -140,7 +140,7 @@
 <h2>Adding A Body</h2>
 <p>
 We can add as many components into our scene as space allows.  Graphics::Primitive
-doesn't stop you from adding too much, but it will do it's best to squeeze
+doesn't stop you from adding too much, but it will do its best to squeeze
 everything in.  In this case we'll add another textbox to thank our visitor.
 </p>
 
@@ -148,7 +148,7 @@
 
   my $tb2 = Graphics::Primitive::TextBox->new(
     width => $size[0],
-    text => "Thanks for reading this advent entry!",
+    text => "Thanks for reading this Advent entry!",
     color => Graphics::Color::RGB->new(red => 0, green => 0, blue => 0, alpha => 1),
     font => Graphics::Primitive::Font->new(
       size => 12,
@@ -180,8 +180,8 @@
 
 <p>
 This has been an extremely brief introduction to Graphics::Primitive and how
-you can create sophisicated, dynamic documents using Catalyst.  You can do much
-more, such as creating SVG, PostScript or PNG output.
+you can create sophisticated, dynamic documents using Catalyst.  You can do much
+more, such as creating SVG, PostScript, or PNG output.
 </p>
 <p>
 If you are interested in learning more check out my <a href="http://www.oneforthehustle.com/gp/ppw08.pdf">talk from PPW 2008</a>
@@ -192,4 +192,4 @@
 
 Cory 'gphat' Watson <tt>&lt;cwatson at coldhardcode.com&gt;</tt>
 
-=end pod::xhtml
\ No newline at end of file
+=end pod::xhtml




More information about the Catalyst-commits mailing list