elliotlovesperl.com
coding style | Elliot Loves Perl
https://elliotlovesperl.com/tag/coding-style
A boy and his language. Tag Archives: coding style. How to structure Perl programs. 2009/11/23 – 3:15 pm. Don’t put the implementation of your program in your program; put it in a module instead. There are at least three reasons for doing things this way:. Your code is more testable. You can feed in arbitrary command lines and check the exit code. Your code is reusable. If you need to use your program from another Perl program, there’s no need to use. Backticks, or IPC: System: Simple. Having the “.
elliotlovesperl.com
No Devel::Declare. Ever. | Elliot Loves Perl
https://elliotlovesperl.com/2009/12/17/no-develdeclare-ever
A boy and his language. No Devel: Declare. Ever. 2009/12/17 – 11:29 am. I think Devel: Declare is evil for the same reasons that Adam does. Even if PPI supports it, Perl: Critic will not be supporting any syntax that’s not part of the language core. Not only because it would be necessary to figure out semantics, but because I oppose balkanization of the language. To quote myself: “. Add a ‘class. keyword. Would that break MooseX: Declare? Laquo; If it’s broken, fix it dammit. Twitter – me.
elliotlovesperl.com
How to structure Perl programs. | Elliot Loves Perl
https://elliotlovesperl.com/2009/11/23/how-to-structure-perl-programs
A boy and his language. How to structure Perl programs. 2009/11/23 – 3:15 pm. Don’t put the implementation of your program in your program; put it in a module instead. There are at least three reasons for doing things this way:. Your code is more testable. You can feed in arbitrary command lines and check the exit code. Your code is reusable. If you need to use your program from another Perl program, there’s no need to use. Backticks, or IPC: System: Simple. And then use that like this:. Blog at WordPres...
elliotlovesperl.com
Thank you Tom Wyant. | Elliot Loves Perl
https://elliotlovesperl.com/2009/08/23/thank-you-tom-wyant
A boy and his language. Thank you Tom Wyant. 2009/08/23 – 4:58 pm. From the Perl: Critic 1.104 Changes file:. This release is dedicated to Tom Wyant in appreciation of the amount of effort he put into the enhancements and bug fixes in this release, for having the patience to wait for the amount of time that it took to get them out, and for overall awesomeness. Thank you, Tom. How to structure Perl programs. Twitter – me. Twitter – perl: critic. Blog at WordPress.com. Follow “Elliot Loves Perl”.
elliotlovesperl.com
Test Moose accessors? Hell, yes. | Elliot Loves Perl
https://elliotlovesperl.com/2010/02/16/test-moose-accessors-hell-yes
A boy and his language. 2010/02/16 – 9:36 pm. I’m sorry Dave, but you’re wrong, wrong, wrong. The purpose of testing “attributes” is not to test that Moose did its thing. The purpose of testing attributes’ accessors is that they are part of your class’ interface. That an accessor is backed by a Moose attribute is an implementation detail. Just because. Is an attribute accessor today doesn’t mean that the data won’t be stored elsewhere in the future or even be derived from something else.
elliotlovesperl.com
Cost of technical debt calculation via Perl::Critic | Elliot Loves Perl
https://elliotlovesperl.com/2012/06/17/cost-of-technical-debt-calculation-via-perlcritic
A boy and his language. Cost of technical debt calculation via Perl: Critic. 2012/06/17 – 4:58 pm. Tudor Constantin asked about extending Perl: Critic to calculate the total cost of violations. You can do this yourself without much work without any code changes to Perl: Critic. Perl: Critic has a. Option which doesn’t emit any individual violations, but just some figures about the code that it looked at. The output looks like this:. Laquo; Test Moose accessors? Twitter – me. Twitter – perl: critic.
elliotlovesperl.com
CPAN module support | Elliot Loves Perl
https://elliotlovesperl.com/tag/cpan-module-support
A boy and his language. Tag Archives: CPAN module support. Explicitly running author tests. 2009/11/24 – 3:23 pm. Tagged CPAN module support. Author test. Set $ENV{TEST AUTHOR} to a true value to run. On the Perl: Critic project, we ran into problems with this. We got failures when people had the environment variable set for their own purposes. The code that checked for enabling author tests also turned them on if there was a. As my build tool, this example will use that. The way to create a custom t...
elliotlovesperl.com
syntax | Elliot Loves Perl
https://elliotlovesperl.com/tag/syntax
A boy and his language. No Devel: Declare. Ever. 2009/12/17 – 11:29 am. I think Devel: Declare is evil for the same reasons that Adam does. Even if PPI supports it, Perl: Critic will not be supporting any syntax that’s not part of the language core. Not only because it would be necessary to figure out semantics, but because I oppose balkanization of the language. To quote myself: “. Add a ‘class. keyword. Would that break MooseX: Declare? Twitter – me. Twitter – perl: critic. Blog at WordPress.com.
elliotlovesperl.com
If it’s broken, fix it — dammit. | Elliot Loves Perl
https://elliotlovesperl.com/2009/11/28/if-its-broken-fix-it-—-dammit
A boy and his language. If it’s broken, fix it dammit. 2009/11/28 – 1:56 pm. Of the epigram “If it’s broken, don’t fix it.”. My problem with this is that people don’t apply the contrapositive. So many just leave things that don’t work around, and that plain sucks. Don’t suffer brokenness. Fix it. Laquo; Explicitly running author tests. No Devel: Declare. Ever. Twitter – me. Twitter – perl: critic. Blog at WordPress.com. Follow “Elliot Loves Perl”. Get every new post delivered to your Inbox.
elliotlovesperl.com
testing | Elliot Loves Perl
https://elliotlovesperl.com/tag/testing
A boy and his language. 2010/02/16 – 9:36 pm. I’m sorry Dave, but you’re wrong, wrong, wrong. The purpose of testing “attributes” is not to test that Moose did its thing. The purpose of testing attributes’ accessors is that they are part of your class’ interface. That an accessor is backed by a Moose attribute is an implementation detail. Just because. Is an attribute accessor today doesn’t mean that the data won’t be stored elsewhere in the future or even be derived from something else. The first thing ...