My "Mojolicious Introduction" now updated for 4.0

On Feb 28, 2013 I gave a talk to Chicago.pm about Mojolicious. I called it an introduction, but I really wanted to show some of the features that sets Mojolicious apart. Because of this, the talk moves very fast. It hits routing and responses quickly, hits testing often, on all the way to well-tested non-blocking websocket examples.

I promised to get my slides up afterwards but life (i.e. my doctoral thesis) got in the way. Now with the release of Mojolicious 4.0 I thought I would take the opportunity to right a wrong and get the slides up; so here they are: http://mojolicious-introduction.herokuapp.com/!

The talk is itself a Mojolicious app, the source of which is available from on GitHub. Not only are all the code snippets shown in the talk included, not only do they all run, but they are actually what is rendered by the talk (DRY++), so what you see is what you get! Please leave any feedback and ask any questions. I may not see the responses here, so feel free to ping me elsewhere if needed.

3 Comments

Hi Joel

Comment re https://mojolicious-introduction.herokuapp.com/:

I feel the tendency here is to over-emphasize the power at the expense of explanations for beginners.

A few specifics:

Slide 7 line 3: { name => ‘Joel’ }: Is a hashref in this position a standard manoeuvre? Can the hashref be returned by a sub? Is this test data? Slide 13 has more but they haven’t read that yet. Yes, I know it’s a trivial question. I want beginners to get explanations rather than feel bewilderment. Is it delivered to the code the same way CGI form data is? Is it auto-inserted into the stash? Even saying ‘hello’ is the name of a template would help. ‘stashes route matches’ because…?

Slide 11: ‘Session info is signed and stored in a cookie’: Which code exactly does that? Or, is that done automatically (e.g. for every request)?

Slide 14 line 8: ‘:id’ is automatically replaced by user (web client) data.

Slide 17 line 11: In case the following code blocks. Yes I know that’s obvious to some. Line 13: Why use the stash?

Cheers Ron

Leave a comment

About Joel Berger

user-pic As I delve into the deeper Perl magic I like to share what I can.