Tag: programming

  • Pointless personal side projects

    Pointless personal side projects

    I can’t be the only programmer who does this. You’re looking for an online service to fill some need in your life. You look at three or four competing products and they all get close but none of them do everything you want. Or maybe they do tick all the boxes but they cost that…

  • Writing a CPAN module that talks to ChatGPT

    Writing a CPAN module that talks to ChatGPT

    ChatGPT exposes an API, but there’s no CPAN module for taking advantage of that. Let’s put that right (with help from ChatGPT)… Write a Perl CPAN module for connecting to a ChatGPT server To create a Perl CPAN module for connecting to a ChatGPT server, you will need to have Perl and the necessary dependencies…

  • Counting Weekends and Wrapping Text

    Counting Weekends and Wrapping Text

    I said that I probably wouldn’t have time to get involved with the Perl Weekly Challenge every week and that has, unfortunately, proven to be the case. But I had a few free minutes earlier in the week so I decided to look at this week’s challenges. I’m glad I did because they seemed to…

  • A Subtle Bug

    A Subtle Bug

    Earlier this week, I saw this code being recommended on Stack Overflow. The code contains a nasty, but rather subtle bug. The version I saw has been fixed now, but I thought there were some interesting lessons to learn by looking at the problems in some detail. Let’s start by working out what the bug…

  • Please Don’t Use CGI.pm

    Please Don’t Use CGI.pm

    Earlier this week, the Perl magazine site, perl.com, published an article about writing web applications using CGI.pm. That seemed like a bizarre choice to me, but I’ve decided to use it as an excuse to write an article explaining why I think that’s a really bad idea. It’s important to start by getting some definitions…