Perl Weekly
Issue #556 - 2022-03-21 - Cucumber & Perl
latest | archive | edited by Mohammad Sajid Anwar
|
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
|
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.
|
|
by Ed J
Lots of performace improvements in the latest release. Please check out the link for more details.
|
|
by Flavio Poletti (POLETTIX)
It is aimed to fix issue and allow intermix text parts in the messages to log with sub references.
|
|
|
Articles
|
by Dragos Trif
A thorough tutorial on the use of Cucumber and Perl.
|
|
|
|
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.
|
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.
|
|
|
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.
|
|
|
by Colin Crain
Perl Solutions Review by Colin Crain.
|
|
by Adam Russell
Use of CPAN module makes the solution sleek. Thanks for introducing new CPAN modules. Keep it up great work.
|
|
|
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.
|
|
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.
|
|
by Colin Crain
Colin just being simply Colin once again. I loved the story telling ability and always a pleasure. Thanks for everything.
|
|
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.
|
|
by Dave Jacoby (JACOBY)
Thanks Dave for sharing the bits about Pi Day. Also because it is my daughter's birthday.
|
|
|
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.
|
|
|
by Flavio Poletti (POLETTIX)
Kudos to Flavio for the poetry in the middle of the blog. Keep surprising us every week.
|
|
|
by James Smith
James presents solution with clarity. It makes even the harder task appears simple, great quality to have. Keep it up.
|
|
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.
|
|
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.
|
|
by Peter Campbell Smith
Peter's blog make sure all the fun bits are shared. Thanks for sharing the knowledge with us every week.
|
|
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
|
|
Weekly collections
|
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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!
|