Here they are from tonight’s presentation, typo-corrected and ready for review. Video to follow.

The original article that inspired this presentation is here.
Code, music, philosophy, etc.
Here they are from tonight’s presentation, typo-corrected and ready for review. Video to follow.

The original article that inspired this presentation is here.
Subscribe to get the latest posts sent to your email.
Hi, I’m Mark Gardner, 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”
Thanks very much for this overview. I’m pinning it on my pinboard.
I suggest changing the title of this post to “Better Perl with subroutine signatures and type validation”. That’s really what the post is about. It will help people find your post better, and it makes it easier for folks when they bookmark it.
Thanks! I’ve changed the title. There’s also the original blog article here: https://phoenixtrap-com.us.stackstaging.com/index.php/2021/01/27/better-perl-with-subroutine-signatures-and-type-validation/
In some conversation on this topic, I distinctly remember typing how I didn’t think it was such a problem not to have signatures, that it’s not that difficult to keep things straight.
Well, I’ve just spent a weekend working on a project and signatures would have SURELY helped as I changed the api from passing around bits and pieces to passing around a single 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
The good news is that with modules like Type::Tiny and Params::ValidationCompiler you can introduce it gradually into your codebase.
[…] Some of the feedback I got indicated that there were more options to consider, so for the presentation I gave at Houston Perl Mongers I quickly summarized at the end seven more modules from CPAN that offer these features. […]
[…] be reprising my presentation on Perl subroutine signatures and type validation for the Boston Perl Mongers on […]