https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11983

David Cook <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #12 from David Cook <[email protected]> ---
Sounds good to me. I'm all for having method naming conventions. 

With Perl's "method names as strings"
(https://perldoc.perl.org/perlobj.html#Method-Call-Variations), I think you can
get the flexibility of Option 1 while using the code in Option 2. 

my $method = "filter_by_$arg";
my $filtered = $obj->$method();

Boom!

And yeah by standardizing method naming conventions, I think we could
potentially see some code re-use for methods that are more complex than your
average DIBC methods but less complex than super unique methods. You can do
some cool stuff with aliasing functions so that you can have different
module-specific names for the same generic method as well, so you might get
that relevant API while still having code re-use.

I see nothing to disagree with (which must be novel considering it's me).
Awesome ideas, Martin!

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to