Mark Gardner ‍:sdf: · @mjgardner
713 followers · 4940 posts · Server social.sdf.org

@eliasp @ColinTheMathmo BTW has two well-known tools to encourage and enforce style and best practices, respectively:
: perltidy.github.io/perltidy
: perlcritic.com

Your project or team can use their reasonable defaults or further configure them to reflect and maintain the consistent application of your preferences. They also integrate with editors/IDEs, source control management, and author .

#perl #programming #perltidy #perlcritic #testing

Last updated 1 year ago

Mark Gardner ‍🤑 · @mjgardner
496 followers · 2131 posts · Server social.sdf.org
Mark Gardner ‍🤑 · @mjgardner
496 followers · 2131 posts · Server social.sdf.org

@jens @RL_Dane @stoerdebegga One reason I choose is its expressivity without being too “large” of a language. (This last is why I still haven’t wrapped my head around —they threw so much into its core.)

I use and to set fairly strict defaults, but both have escape hatches for code islands that need to bend the rules for whatever reason (e.g. better modeling or critical-path performance, or sometimes fencing off legacy code to be brought up to spec later).

#perl #rakulang #perlcritic #perltidy

Last updated 2 years ago

Mark Gardner ‍🤑 · @mjgardner
496 followers · 2131 posts · Server social.sdf.org

#perltidy #perlcritic

Last updated 2 years ago

Mark Gardner ‍🤑 · @mjgardner
496 followers · 2102 posts · Server social.sdf.org

@jens @RL_Dane @stoerdebegga (I also think every distribution should include and configs and author tests to encourage consistently-written contributions.)

#cpan #perltidy #perlcritic

Last updated 2 years ago

Mark Gardner · @mjgardner
347 followers · 752 posts · Server social.sdf.org

@chrisjrob @snonux @Perl and also help with readable, maintainable, and consistent code. I like to joke that I don’t have a style, I have a perlcritic policy.

#perltidy #perlcritic #perl

Last updated 2 years ago

Mark Gardner 🧾 · @mjgardner
349 followers · 821 posts · Server mastodon.sdf.org
Mark Gardner 🧾 · @mjgardner
279 followers · 513 posts · Server mastodon.sdf.org

Let me remove your excuses for not using or :

1) Use `## no critic` to fence in legacy or experiments in coding standards from perlcritic metacpan.org/dist/Perl-Critic/

2) Use `#<<<` and `#>>>` to fence in legacy or experiments in code formatting from perltidy metacpan.org/dist/Perl-Tidy/vi

3) Use Test::Perl::Critic::Progressive to gradually enforce coding standards metacpan.org/pod/Test::Perl::C

mstdn.social/@marick/109389534

#perlcritic #perltidy #perl #programming #coding #testing #softwaredevelopment #devops

Last updated 2 years ago