#Dancer2

2026-01-08

I'm at the point in my #Perl #Dancer2 journey where I'm spending more time chasing bugs in core modules than my own code šŸ˜ž

The database modules have two long-standing bugs that you'd expect most users to hit:

1. Authentication using a db does not refresh stale handles, so you can't login.

2. Multiple db connections don't inherit the application charset setting.

These bugs have existed for ten years with fixes available. Is no one actually using Dancer2 or are we all patching locally?

2025-12-14

I’ve had a fun day converting my #Perl #Dancer2 application to use #SQLite instead of MySQL, which not only suits the size and expected use of the application better, but gave me the opportunity to get rid of MySQLisms. It has become so much easier to work locally with Dancer, allowing a lot of schema and view changes very quickly, so I can see the relationships between A. C. Michael’s paintings much faster. #art #CatalogueRaisonnĆ©

A gallery of paintings by A. C. Michael in my new app.A painting from H. Rider Haggard’s ā€œThe Ghost Kings,ā€ by A. C. Michael.
2025-12-08

I have a #Perl #Dancer2 application that uses a database. For non-authenticated routes, db connections that timeout are reconnected automatically. Nice. However, authenticated routes, which also require the db, are not reconnected because Dancer2::Plugin::Auth::Extensible::Provider::Database caches a stale handle.

Luckily, a pull request has been outstanding for 8 years, so I can patch locally. I hope this isn't a bellwether for Dancer2 vivacity in general. [edit: typo]

2025-11-30

I had a really positive surprise this morning. My 14-year old has been teaching himself all sorts of computing skills since the start of the summer, so I asked him to look at my catalogue raisonnĆ© #Perl app, which I’ve been coding using #Dancer2. He not only critiqued the web page layout (ā€œthose links are in the wrong place: I didn’t even see them at firstā€) and spotted several inconsistencies in the menus, but made me think about the data underlying the catalogue itself. 1/2

Taco Davedave@puz.fun
2025-11-28

I’ve been learning #CSharp and #DotNet as part of a migration project at work, and got my boss’s blessing to share some of the insights and concept-mapping I’ve done so far: itsdaves.site/2025/11/28/perl-

If you’re a dev who went from #Perl to C# or vice versa, or #Linux to #Windows or vice versa, I’d love to hear any interesting insights or tricks you’ve learned.

#Dancer2 #PerlDancer #DBIxClass #EntityFrameworkCore #PostgreSQL #SQLServer

2025-10-12

Having used a ā€˜standard’ web host for over 25 years (Apache, MySQL, Perl CGI), I’ve now rebuilt my application in #Perl #Dancer2, which was a joy and speeded up things no end for me on localhost. Now it's time to consider deployment and I don't know where to do it. Given the likely low traffic, I'm tempted to run it entirely on my home machine. But, to paraphrase a famous maxim about lawyers, does someone who sysadmins their own site at home have a fool for a client?

Demiguise šŸ‡®šŸ‡±demiguise@linuxrocks.online
2025-08-02
Taco Davedave@puz.fun
2025-03-31

Any #Perl devs with #PerlDancer #Dancer2 experience and #PlackTest experience able to give me a debugging hint? An app I’m trying to migrate from Alpine to Debian works as expected on the new image but in the testing context it’s not creating a session from the cookie being sent in the test request.

Demiguise šŸ‡®šŸ‡±demiguise@linuxrocks.online
2025-01-30

@domm Thanks a lot for describing it - I'm currently trying to build something similar with a #Dancer2 app and a #PostgreSQL DB. I thought about integrating git somewhere in the publishing process, but couldn't think of a propper way yet...

2024-12-31

I’ve spent three days or so experimenting with #Perl #Dancer2 and it has been great fun. I’ve taken my current project, which is Perl, CGI, Template Toolkit and MySQL and remodelled it with Dancer2, using Plack for local serving. I spent the first two days simply reading and re-reading the Dancer2 manual and FAQ to get a big picture in my head, allowing quite a lot to whoosh me, and then sat down. This is going to be a lot smaller and faster than my old CGI apps, clearly.

Demiguise šŸ‡®šŸ‡±demiguise@linuxrocks.online
2024-08-12

Hmm... I wonder if I could switch from hugo to a Dancer2 app for my personal blog...

(Hugo is already a great step in the right direction from wordpress, but I still had the feeling that it is a little bit bloated...)

#hugo #perl #Dancer2

2024-01-31

@getimiskon @segnwrisastoika Here’s a good article on current alternatives to the old #Perl CGI.pm module: metacpan.org/pod/CGI::Alternat

tl;dr: You can write less code and eventually scale up to handle more traffic if you use a framework like #Mojolicious or #Dancer2. But if you must stick to #CGI, consider metacpan.org/pod/CGI::Tiny

And if you haven't yet, follow chirp.social/@Perl to talk with nearly 500 other Perl users across the fediverse.

2023-05-18

@vandys @randomgeek @codinghorror As a #Perl hacker I will never besmirch #CGI as a standard or for light-use web scripts, but a lot of sins were committed with the two.

These days the done thing is to use #PSGI and a framework like #Mojolicious or #Dancer2 in a persistent app server. You don’t have to write nearly as much code, either. plackperl.org

The #Plack middleware can even run your code as a CGI or #FastCGI script if you reallly want.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst