in reply to Re: Writing a better Modern::Perl
in thread Writing a better Modern::Perl

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^3: Writing a better Modern::Perl
by moritz (Cardinal) on Oct 07, 2010 at 17:10 UTC
    Other than the extremely weak argument you present

    I don't think JavaFan's argument is weak, and you didn't do anything serious to prove your point.

    Also if you don't respect the opinions of those that answer, why ask for opinions in the first place?

    Perl 6 - links to (nearly) everything that is Perl 6.
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^3: Writing a better Modern::Perl
by JavaFan (Canon) on Oct 07, 2010 at 18:14 UTC
    I have nothing against defaults.

    However, if you would be happy with the defaults, you wouldn't toss out one module, and write your own with a different set of defaults.

    I know what "defaults" I get when using 'use warnings', or 'use strict'. I also know they are very unlikely to change, and, if they do, it will require a major Perl release. The defaults for 'use strict' haven't changed since 5.000.

    But with Modern::Perl, nextgen, and other modules enabling lexical pragmas outside of their lexical scope, they aren't defaults. The are choices, choices made by the authors. And regardless whether one agrees with the authors choices, for each module you encounter in code you inherit/maintain, you'll have to find out what it does. That takes an effort.

    Writing good Perl code isn't golfed code. Mentioning the pragmas you're going to use in your program only takes a few seconds of typing. IMO, the benefits of mentioning the pragmas your using far outweight the cost of typing a few lines. It's just like comments. I spend quite a few keystrokes on comments. Sometimes, the comments even look like "boilerplate". Guess what, I don't hide that in a module either.

Re^3: Writing a better Modern::Perl
by petdance (Parson) on Oct 10, 2010 at 03:03 UTC

    EvanCarroll: "Hey, can you give me a ride to the store?"
    Friend: "Sure, let's go."
    EvanCarroll: "Dude, your car sucks."

    Asking someone for their opinion, then arguing against it, teaches people that they should not bother responding to your requests.

    xoxo,
    Andy