Better Perl: Subroutine Signatures and Type Validation presentation slides

Here they are from tonight’s pre­sen­ta­tion, typo-​corrected and ready for review. Video to follow.

Animated slideshow of Better Perl: Subroutine Signatures and Type Validation
It seemed like the time just flew by…

The orig­i­nal arti­cle that inspired this pre­sen­ta­tion is here.


Discover more from The Phoenix Trap

Subscribe to get the latest posts sent to your email.

Mark Gardner Avatar

Hi, I’m Mark.

Hi, I’m Mark Gard­ner, and this is my personal blog. I show software developers how to level up by building production-ready things that work. Clear code, real projects, lessons learned.

Comments

6 responses to “Better Perl: Subroutine Signatures and Type Validation presentation slides”

  1. Andy Lester Avatar
    Andy Lester

    Thanks very much for this overview. I’m pin­ning it on my pinboard.

    I sug­gest chang­ing the title of this post to Better Perl with sub­rou­tine sig­na­tures and type val­i­da­tion”. That’s real­ly what the post is about. It will help peo­ple find your post bet­ter, and it makes it eas­i­er for folks when they book­mark it.

    1. Mark Avatar

      Thanks! I’ve changed the title. There’s also the orig­i­nal blog arti­cle here: https://phoenixtrap-com.us.stackstaging.com/index.php/2021/01/27/better-perl-with-subroutine-signatures-and-type-validation/

  2. Matthew Persico Avatar
    Matthew Persico

    In some con­ver­sa­tion on this top­ic, I dis­tinct­ly remem­ber typ­ing how I did­n’t think it was such a prob­lem not to have sig­na­tures, that it’s not that dif­fi­cult to keep things straight.

    Well, I’ve just spent a week­end work­ing on a project and sig­na­tures would have SURELY helped as I changed the api from pass­ing around bits and pieces to pass­ing around a sin­gle data structure.

    Can’t use string (“Pod::Parser”) as a HASH ref while strict refs” in use at bin/​pmdh-​modulate line 517.”

    :face-​palm :rotf

    1. Mark Avatar

      The good news is that with mod­ules like Type::Tiny and Params::ValidationCompiler you can intro­duce it grad­u­al­ly into your codebase.

  3. […] Some of the feed­back I got indi­cat­ed that there were more options to con­sid­er, so for the pre­sen­ta­tion I gave at Hous­ton Perl Mon­gers I quick­ly sum­ma­rized at the end sev­en more mod­ules from CPAN that offer these features. […]

  4. […] be repris­ing my pre­sen­ta­tion on Perl sub­rou­tine sig­na­tures and type val­i­da­tion for the Boston Perl Mon­gers on […]

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)