jagomart
digital resources
picture1_Advanced Web Programming Pdf 196766 | Ts Current Issues In Perl 1x2


 153x       Filetype PDF       File size 0.28 MB       Source: www-zeuthen.desy.de


File: Advanced Web Programming Pdf 196766 | Ts Current Issues In Perl 1x2
current issues in perl programming lukas thiemeier current issues in perl programming desy zeuthen 2011 04 26 overview introduction moose modern object orientation in perl dbix class comfortable an flexible ...

icon picture PDF Filetype PDF | Posted on 07 Feb 2023 | 2 years ago
Partial capture of text on file.
           Current Issues In Perl Programming
                                                          Lukas Thiemeier
                                                          Current Issues In Perl Programming
                                                          DESY, Zeuthen, 2011-04-26
           Overview
           > Introduction
           > Moose – modern object-orientation in Perl
           > DBIx::Class – comfortable an flexible database access
           > Catalyst – a MVC web application framework
                                                Lukas Thiemeier  | Current issues in Perl programming  |  2011-04-26  |  Page 2
            Introduction
            > What is this talk about?
                  Modern Perl can do more than most people know
                  A quick overview about some modern features
                  Illustrated with some short examples
            > What is this talk not about?
                  Not an introduction to the Perl programming language
                  Not a Perl tutorial
                  Not a complete list of all current issues in Perl 5
                  Not a complete HowTo for the covered topics
                                                  Lukas Thiemeier  | Current issues in Perl programming  |  2011-04-26  |  Page 3
            Overview
            > Introduction 
            > Moose – modern object-orientation in Perl
                  About Moose
                  Creating and extending classes
                  Some advanced features
            > DBIx::Class – comfortable an flexible database access
            > Catalyst – a MVC web application framework
                                                  Lukas Thiemeier  | Current issues in Perl programming  |  2011-04-26  |  Page 4
            About Moose
            > “A postmodern object system for Perl 5”
            > Based on Class::MOP, a metaclass system for  Perl 5
            > Look and feel similar to the Perl 6 object syntax
            “The main goal of Moose is to make Perl 5 Object Oriented programming
            easier, more consistent and less tedious. With Moose you can to think
            more about what you want to do and less about the mechanics of OOP.”
                                                   Lukas Thiemeier  | Current issues in Perl programming  |  2011-04-26  |  Page 5
            Creating Classes
            > A very simple Moose-Class:
                  Create a file called “MyAnimalClass.pm” with the following content:
               package MyAnimalClass;
               use Moose;
               no Moose;
               1;
                                                   Lukas Thiemeier  | Current issues in Perl programming  |  2011-04-26  |  Page 6
           Creating Classes
           > A very simple Moose-Class:
                                                   The package name is used
                                                          as class name.
              package MyAnimalClass;
              use Moose;
                                                                Load the Moose package
              no Moose;
              1;
                                                          Clean up the namespace.
                                                         (optional but recommended) 
                      Ensure that the package
                        returns a true value.
                                               Lukas Thiemeier  | Current issues in Perl programming  |  2011-04-26  |  Page 7
           Creating Objects
           > The previous example is completely functional 
           > Moose creates the class, including a constructor, automatically
           > Objects of the class can be created by calling the constructor:
              use MyAnimalClass;
              my $new_simple_object = MyAnimalClass->new();
                                               Lukas Thiemeier  | Current issues in Perl programming  |  2011-04-26  |  Page 8
The words contained in this file might help you see if this file matches what you are looking for:

...Current issues in perl programming lukas thiemeier desy zeuthen overview introduction moose modern object orientation dbix class comfortable an flexible database access catalyst a mvc web application framework page what is this talk about can do more than most people know quick some features illustrated with short examples not to the language tutorial complete list of all howto for covered topics creating and extending classes advanced postmodern system based on mop metaclass look feel similar syntax main goal make oriented easier consistent less tedious you think want mechanics oop very simple create file called myanimalclass pm following content package use no name used as load clean up namespace optional but recommended ensure that returns true value objects previous example completely functional creates including constructor automatically be created by calling my new...

no reviews yet
Please Login to review.