Tuesday, November 9, 2021

Taming the Moose: Classing up Perl Attributes

At my work, we extensively use the Moose object system to take care of what would ordinarily be very tedious boilerplate object-oriented Perl code. In one part of the codebase, we have a family of classes that, among other things, map Perl methods to the names of various calls in a third-party API within our larger organization. Those private Perl methods are in turn called from public methods provided by roles consumed by these classes so that other areas aren't concerned with said API's details.

Without going into too many specifics, I had a bunch of classes all with sections that looked like this:



from DZone.com Feed https://ift.tt/3qle6zO

No comments:

Post a Comment