in reply to Modules you build yourself = Your Child

OK, so let's get technical and look at your modules.

SF::SF_form_secure

So all in all, thank you for making me waste my time on your crap. I would not touch that module no matter what. The AUBBC looks slightly better at the first look, I ain't gonna waste any more time.

Jenda
Enoch was right!
Enjoy the last years of Rome.

Replies are listed 'Best First'.
Re^2: Modules you build yourself = Your Child
by CountZero (Bishop) on Sep 19, 2010 at 07:39 UTC
    And let's not forget such beauties as found in the "Notes":
    To Provide a uniqe link others can not use Format the provided key something like this $key = $key . $Member_Name; and/or use the IP encoding the new key format and/or ip encoding will need to be used for all actions
    I had to read that three times to start understanding what it was all about. Making it easy on your users is of course oh so uncool.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re^2: Modules you build yourself = Your Child
by tinita (Parson) on Sep 19, 2010 at 10:50 UTC
    The AUBBC looks slightly better at the first look, I ain't gonna waste any more time.

    I have now tested it to include it in my Parse::BBCode compare.html.
    It is fast (almost as fast as HTML::BBReverse), but unfortunately like the latter it creates invalid HTML with unbalanced tags:

    perl -Ilib -wle' use AUBBC; my $p = AUBBC->new; my $bbcode = "[i] italic [b]bold[/b] end"; my $html = $p->do_all_ubbc($bbcode); print $html; ' <i> italic <b>bold</b> end
    So it's basically unusable in a web forum because it can break the output HTML. I didn't find something about unbalanced tags in the docs.
    It allows block elements like div inside of elements like i or b.
    These are the reasons why it is so fast because it replaces start and end tags independently.
    The module does not have any tests.
    Source code is IMHO not very readable. No, too small or inconsistent indenting, very long lines. But of course, source code is just a matter of taste...

    A reply falls below the community's threshold of quality. You may see it by logging in.
A reply falls below the community's threshold of quality. You may see it by logging in.