Tags / Perl
The Mojolicious Toolkit

This presentation covers some of the Mojolicious toolkit—a suite of classes that enables the Mojolicious web framework—and provides illustrations of many of the more useful modules. Slides and code samples are available at https://scottw.github.io/presentations/mojolicious-toolkit and https://github.com/scottw/mojolicious-toolkit respectively.

This presentation uses Mojolicious version 7.84 which was released in June 2018.

2018-07-15    
JSON Schema and OpenAPI

I gave a presentation this week about JSON Schema and OpenAPI.

Here are the slides for the presentation; here is the source code used in the presentation.

Video expertly recorded and edited by Doran Barton:

2017-10-12    
Functional Refactoring

I gave a presentation last week at Bluehost about using functional programming techniques to overcome some of the common quandaries in procedural codebases.

Here’s the blurb:

Functional programming is the oldest but least well known of the three major programming paradigms. While it has a reputation for inscrutability, many of its tenets can be applied to both procedural and object-oriented paradigms to reduce complexity and create cleaner code. In this workshop we’ll get a taste of functional programming in Perl and apply the techniques we learn to refactoring and removing common procedural anti-patterns.

2017-06-12    
High Availability Perl with Kubernetes

I gave a presentation about Kubernetes (using a Mojolicious Perl application as the example). Here are the sources and here are the slides.

As usual, Doran Barton put together an expert recording:

2016-11-10    
SOLID MVC in Perl

Here is a link to my SOLID MVC in Perl presentation slides, and here is a link to the Perl sources used. I’ll post the recording here as soon as it’s available.

Photo by Robert Lukeman via Unsplash.

2016-10-29    
OpenSSL, OS X "El Capitan" and Brew

Apple removed the OpenSSL header files in “El Capitan”, making it hard to build OpenSSL-dependent libraries without modifying your system a little bit.

Fortunately we have Homebrew; if you don’t have it yet, go ahead and install it now. I’ll wait here.

Ready? Now, repeat after me:

$ brew doctor (now fix anything that it tells you to fix)
$ brew update
$ brew upgrade

We’re just warming up with all that; it’s good to stay current with things like OpenSSL, which tends to go stale fast. Now let’s install it:

2015-12-08    
Dockerizing Perl Applications

I presented at our Salt Lake Perl Mongers about using Docker to isolate dependencies in your Perl applications.

Perl on Docker

2015-09-14    
AnyEvent Primitives

I gave a talk at OpenWest about Perl’s AnyEvent module and some of its primitive operations.

2015-07-06    
Fast Perl Dependency Isolation

I gave a presentation at OpenWest about Perl dependency isolation using perlbrew and plenv + carton:

2015-06-01    
Perl Hash Reference Partial Copy

Given a multi-level deep hash reference:

my $conf = {
    bucket => {
        list => {
            h    => 'help me',
            _sub => sub { say "something" }
        }
    },
    file => {
        upload => {
            h    => 'help me too',
            _sub => sub { say "else" }
        }
    }
};

We want to remove all of the _sub keys and put them in a separate hash reference with the same structure. This does that:

2015-03-28