A Moose Tutorial

By Stevan Little (‎stevan‎) from AmsterdamX.pm
Date: Wednesday, June 18, 2008 08:00 AM
Duration: 110 minutes
Target audience: Beginner
Language:
Tags: moose oop


Perl’s Object Oriented features have always gotten a bad wrap (Larry claims he stole it from Python, but Guido disagrees). This has caused people to reach for all kinds of strange things like Inside-Out objects, closure based objects, or sometimes just abandon them all together. Perl 5’s (post) modern object system Moose provides robust flexibility and design to this venerable language. Inspired by the Common LISP Object System (CLOS), Smalltalk and the Perl 6 meta model, Moose brings deep introspection, easy delegation, a flexible type constraint system, and many more modern OO tools. In short, Moose makes OO Perl fun!

This 2 hour tutorial will cover a basic introduction to get you off the ground running with Moose. We’ll use a simple project and show how to build an application from the ground up using Moose’s core features, we will explore types, roles, several of the popular Moose Extensions (MooseX::) and possibly, if time allows, create some custom metaclasses of our own to show the full metaprogramming power available in Moose. When you are done you’ll be able to go back to your own projects and apply the power of Moose!


Perl Sites : perl | books | dev | history | jobs | learn | lists | use   
Yet Another Perl Conference North America