Issue #531 - 2021-09-27 - Legacy code

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

Hi there

I like working on legacy code whether it is Perl, Python or some other language, because it is code that is already very valuable to the organization that uses it. It is great to help the maintainers understand the code better and to give them confidence in making changes to the code.

There are a number of language specific tools that can help you while dealing with legacy code. For example Perl Critic which is mentioned in at least two posts this edition. There are more generic things, like setting up a good CI system which is mentioned by Gugod.

The ideal situation is when both management and the engineers really want the change. They still probably need some external help from someone who has experience in similar situations and who has already seen systems where the engineers have no fear in making changes. It is a totally different world than what many people experience in organizations.

Enjoy your fearless week!

Gabor Szabo



CPAN Release of TooMuchCode 0.17

by Kang-min Liu

Perl::Critic::TooMuchCode is a set of policy add-ons that check for dead or redundant code.

Everyone’s a (Perl) critic, and you can be too!

by Mark Gardner

The perlcritic tool is often your first defence against awkward, hard to read, error-prone, or unconventional constructs in your code.

Wider List::Util

by Flavio Poletti (POLETTIX)

... and List::MoreUtils

Perl's File::Find on Windows: A path forward?

by Sinan Unur (NANIS)

An interesting discussion on mixing up file-system and operating-system features and making changes to core modules.


by Flavio Poletti (POLETTIX)

Term::QRCode generates QR Codes on the terminal.



CPAN installation as a test, with GitHub workflow

by Kang-min Liu

Saving the already zipped up CPAN distribution as an artifact and then trying to install it using one of the cpan clients in your CI pipeline


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 - 132

by Mohammad Sajid Anwar (MANWAR)

Welcome to a new week with a couple of fun tasks "Mirror Dates" and "Hash Join". 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 - 131

by Mohammad Sajid Anwar (MANWAR)

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

Perl Review - Perl Weekly Challenge - 129

by Colin Crain

Perl Solutions Review by Colin Crain.

Perl Weekly Challenge 131: Consecutive Arrays

by Abigail

Abigail is back with his one-liner in Perl. Awesome.

Perl Weekly Challenge 131: Find Pairs

by Abigail

Abigail once again showing Regex power, Really cool solution.

Con Se Pair with Raku and Perl

by Arne Sommer

Arne sharing Raku hacks as always but this time we have Perl solutions too. Thanks for sharing.

CY's Take on The Weekly Challenge #131

by Cheok-Yin Fung

Cheok-Yin shared a bonus solution in Julia as well as Perl. Well done and keep it up.

Consequential Pairings and SECRET CUTS

by Colin Crain

Colin is back with his great blog after the break. We all missed you. Thanks for your contributions.

Consecutive Limits: The Weekly Challenge

by Dave Jacoby (JACOBY)

Dave made the 'Find Pairs' task look simple. Great work.

PWC130 - Odd Number

by Flavio Poletti (POLETTIX)

Cool use of hashes to solve the task in both Perl and Raku. Keep it up great work.

PWC130 - Binary Search Tree

by Flavio Poletti (POLETTIX)

Flavio used a recursive function to solve the task. Implementation is really simple and easy to follow.

Perl Weekly Challenge #131

by James Smith

Beautiful solution and cool use of map. However, not easy to follow but laid out nicely.

Perl Weekly Challenge 131: no coffee, no elegance

by Luca Ferrari

Luca shared a cool Raku trick as always. Thanks for sharing.

Perl Weekly Challenge 131: Consecutive Arrays

by Laurent Rosenfeld

Just one solution this week, but very simple and easy to follow.

Perl Weekly Challenge 131

by W Luis Mochan

Luis shared simple and easy to follow solutions. Keep up the great work.

Perl Weekly Challenge 131: Splitting and Splitting More

by Roger Bell West (FIREDRAKE)

Roger shared a Postscript solution along with Ruby. It is always the main attraction.

Weekly Challenge 131

by Simon Green

Simon used regex power to solve the task this week. Thanks for sharing.

Weekly collections

Perl Jobs by Perl Careers

A job with real flexibility. 100% remote Perl position

As one of the most popular open-source ticketing systems on the planet, this team knows what it takes to attract organizations of all sizes. With a diverse user base that includes academic institutions, government agencies, and security teams, their software is free to download, deploy, and modify. Looking for a Perl developer with Mason, Moose, and Mojolicious.

Someone left the awesome job machine on again… UK remote Perl job

Perl programmers, lean in — this is the opportunity for you if your happy place is at home in your fuzzy bunny slippers. The role is 100% remote friendly for those located in the UK, so kick back and enjoy your commute-free existence. If you’re a crack-hand with Catalyst, a Mojolicious master, or a distinguished Dancer, they want you.

NLP is all right by me! Perl, Python, NLP role in Amsterdam

Our client is on the hunt for an NLP Engineer that has strong Perl and Python and whose passion for NLP is matched only by their interest in Machine Intelligence and their ability to drive quality improvements, measurement standards, and error analysis processes for the NLP framework.

Wanted: Senior Perl developers with good karma. Remote Perl within UK, South Africa and Switzerland

Our client is a multinational fundraising group that works with thousands of charities to provide cloud-based management tools, a dedicated social fundraising platform, and a secure channel for charities to receive funds. In addition to having a strong Perl background, must also have automated payment experience.

Summer is calling… Perl role in Malta

Our client is an international financial company with offices around the world. With a global presence and the kind of growth that would make a beanstalk blush, they’re looking to expand their team. If you’re a Perl programmer with a side interest in online trading, you’ll be a natural in this role.

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