Issue #556 - 2022-03-21 - Cucumber & Perl

latest | archive | edited by Mohammad Sajid Anwar
This edition was made possible by the supporters of our cause.
Don't miss the next issue!

Hi there.

How do you test a Web API using Perl?

I am sure you have most likely used TDD to test your Web API. How about trying something new for a change?

Something like BDD, Behaviour Driven Development. I came across BDD many years ago when my manager introduced the term to the team and gave us a short tutorial using Java. I was completely blown away by the idea itself. I never actually got the opportunity to use BDD in any of the Perl projects I worked in afterwards, unfortunately. Then few years later in 2018, I got the opportunity to attend the talk Behaviour Driven Development and Cucumber by Martin Berends at the London Perl Workshop. After a quick search, I found a video of the same talk. If you missed the talk then it is your chance now to watch the talk. If the video is not enough and you are looking for more. I would highly recommend the book Cucumber & Perl by John Davies. It was published by Perl School publishing house run by Dave Cross. If you are interested in complete tutorial then you should check out this blog post.

Speaking of BDD, I came across the term "Extreme Programming (XP)". TDD has been part of my day job most of the time without realising it being part of XP. I found this website showing Extreme Programming using Perl. You can download the entire book in pdf format for FREE. If you are new to Extreme Programming then take a look at the gentle introduction.

THe last couple of years have been very tough for most of us in the IT sector. Although we all have been adjusted to the new normal of work-from-home culture, it has still left some scars behind. Mental health is one such issue being discussed more frequently during this period. I have found a way to keep my mind busy when needed; reading books (mostly non-technical). Recently I found the quote "Lately my peace has been more important than proving my point." on web that express my current mental state. How do you deal with your WFH blues?

Last but not least, I have finally reached the 3 digits figure i.e. my 100th edition of the weekly newsletter. It took me nearly 3 years to get this far. I would like to take this opportunity to thank each and every readers of the weekly newsletter for the kind words and appreciations. I would also like to thank, Gabor Szabo for being my guide and mentor, all these years.

Enjoy the rest of the newsletter, stay safe and pray for world peace.

Mohammad Sajid Anwar


Announcements

Perl and Raku featured in Linux Format magazine

by Stuart Mackintosh

Thanks to Nic Evans for securing a regular slot in Linux magazine. If you would like to contribute then please do get in touch with her.

PDL 2.077 released

by Ed Jordan

Lots of performace improvements in the latest release. Please check out the link for more details.

Log::Log4perl::Tiny

by Flavio Poletti (POLETTIX)

It is aimed to fix issue and allow intermix text parts in the messages to log with sub references.


Articles

How To Test Web APIs with Perl and Cucumber

by Dragos Trif

A thorough tutorial on the use of Cucumber and Perl.

Access the Tesla API with Perl!

by Steve Bertrand

Cool use of Tesla::Vehicle to access Tesla API.

The love of Perl in Memes

by Thibault Duponchelle

Nice collection of Memes about Perl. Do you have more?


The Weekly Challenge

The Weekly Challenge by Mohammad Anwar will help you step out of your comfort-zone. You can even win prize money of $50 Amazon voucher by participating in the weekly challenge. We pick one winner at the end of the month from among all of the contributors during the month. The monthly prize is kindly sponsored by Peter Sergeant of PerlCareers.

The Weekly Challenge - 157

by Mohammad Sajid Anwar (MANWAR)

Welcome to a new week with a couple of fun tasks "Pythagorean Means" and "Brazilian Number". If you are new to the weekly challenge then why not join us and have fun every week. For more information, please read the FAQ.

RECAP - The Weekly Challenge - 156

by Mohammad Sajid Anwar (MANWAR)

Enjoy a quick recap of last week's contributions by Team PWC dealing with the "Pernicious Numbers" and "Weird Number" tasks in Perl and Raku. You will find plenty of solutions to keep you busy.

Perl Review - Perl Weekly Challenge - 152

by Colin Crain

Perl Solutions Review by Colin Crain.

Persnickety Pernicious and Weird

by Adam Russell

Use of CPAN module makes the solution sleek. Thanks for introducing new CPAN modules. Keep it up great work.

Weirdly Pernicious

by Arne Sommer

For me, I found the one-liner solution in Raku for Pernicious Number task is the top class. Thanks for sharing the knowledge with us.

CY's Take on The Weekly Challenge #156

by C.-Y. Fung

Cheok-Yin is a very brave contributor in my humble opinion. I liked the way she goes beyond the task and present her solution. Kudos to your effort.

Pernicious Perfidy

by Colin Crain

Colin just being simply Colin once again. I loved the story telling ability and always a pleasure. Thanks for everything.

High Weirdness on the Number Plane

by Colin Crain

Thanks for sharing the beautiful use of __SUB__ token. Nice to see it after a long time. Keep it up great work.

Pernicious and Weird Are The Numbers We Two Can Share

by Dave Jacoby (JACOBY)

Thanks Dave for sharing the bits about Pi Day. Also because it is my daughter's birthday.

PWC156 - Pernicious Numbers

by Flavio Poletti (POLETTIX)

I liked how easily Flavio used the bit operator. It did make the end result sleek. Thanks for sharing the knowledge.

PWC156 - Weird Number

by Flavio Poletti (POLETTIX)

Kudos to Flavio for the poetry in the middle of the blog. Keep surprising us every week.

The Weekly Challenge #156

by James Smith

James presents solution with clarity. It makes even the harder task appears simple, great quality to have. Keep it up.

Perl Weekly Challenge 156: Pernicious and Weird Numbers

by Laurent Rosenfeld

Narative style story telling is the highlight of Laurent's blog. This week we had bonus solutions in Julia and Python too. Thank you for your contributions.

Perl Weekly Challenge 156

by W Luis Mochan

Luis surprised all of us with his one-liner in Raku. I wonder why he didn't share the code as solution. Well done.

Pernicious and weird ...

by Peter Campbell Smith

Peter's blog make sure all the fun bits are shared. Thanks for sharing the knowledge with us every week.

Weirdly Pernicious or Perniciously Weird?

by Roger Bell West (FIREDRAKE)

The use of Hamming weight is something I wasn't aware of earlier. Discussion of multiple languages in one blog makes it even more fun to read. Thanks for everything.


Rakudo

2022.11 Tau / 2

by Elizabeth Mattijsen (ELIZABETH)


Weekly collections

Perl Jobs by Perl Careers

Perl to Node Cross-training? Yes Please! UK Remote Perl Role

Our client is looking for junior and mid-level Perl developers, Node engineers, and those with stellar Python and SQL skills. They embrace flexibility, and their ideal candidate will, too. Perl may be your core competency, but if you’re invested in cross-training to Node, you may be the full package that this client wants on their team.

Good (Perl) Humans Wanted. Remote Perl role in USA

Working with first responders, educators, manufacturers, and engineers, our client is the leading provider of award-winning intelligent SaaS solutions. They’re looking for a Perl developer with Catalyst and DBlx::Class.

Python and Perl: Better Together! Perl/Python role in London

We’ve got a role open for a Senior Developer skilled in both Perl and Python. These premium native advertising gurus understand corporate, tech, financial services, and lifestyle technology. You’ll use server-side code, client-side code, databases, and websites to develop the software platform.

Are you at the head of the pack? Chief Software Architect role in Malaysia

Our international client provides online trading services. They’ve got a stack of projects that need the right Chief Software Architect to manage their team as they work through these projects, and that’s where you come in. You’ll work closely with the Chief Technology Officer, mentor engineering teams and provide guidance in solving issues.

What would your computer say about you? Perl, Python, NLP role in Amsterdam

Our client is the worldwide leader in machine intelligence for matching people with jobs, which is to say that when it comes to hiring, they know what they’re doing. Applicants, bring your “A” game: they’re looking for a Natural Language Processing (NLP) Engineer who is passionate about Machine Intelligence and can evaluate NLP systems.



You know, you could get the Perl Weekly right in your mailbox. Every Week.
Free of charge!

Just ONE e-mail each Monday. Easy to unsubscribe. No spam. Your e-mail address is safe.
Perl Weekly on Twitter RSS Feed of the Perl Weekly. Updated once a week