[Koha-devel] Koha::Object

Kyle Hall kyle.m.hall at gmail.com
Mon Jul 27 13:04:15 CEST 2015


Since Koha::Object(s) is used for with inheritance interfaces aren't really
necessary. Simply declaring Koha::Object(s) as a base for your module will
mean those methods already exists. The only time you need to define one of
those methods is if you need to override the base behavior ( to add error
checking, modify related objects, etc ).

I believe the primary issue is start-up time needed for Moose, which makes
it untenable for basic cgi script usage ( as opposed to PSGI/Plack where it
only needs to load once ).

In general I'm a fan of interfaces, so I'm not opposed to the idea. Can you
explain what advantage you think we'd can from implementing interfaces for
Koha::Object(s)?

Thanks!
Kyle

http://www.kylehall.info
ByWater Solutions ( http://bywatersolutions.com )
Meadville Public Library ( http://www.meadvillelibrary.org )
Crawford County Federated Library System ( http://www.ccfls.org )
Mill Run Technology Solutions ( http://millruntech.com )

On Mon, Jul 27, 2015 at 6:58 AM, Kivilahti Olli-Antti <
olli-antti.kivilahti at jns.fi> wrote:

> Hi there!
>
> I was looking for anykind of Interface implementation for Perl, and I
> found Moose and Class::Interface.
>
> I cant but wonder why we are not using Moose for Koha::Object.
> Apparently it works nicely with DBIx as well.
>
> --
>
> Olli-Antti Kivilahti
> Järjestelmäkeittäjä
> vaarakirjastot.fi
> +358 50 449 7763
> --Powered by Kubuntu Linux!
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20150727/504c6afc/attachment.html>


More information about the Koha-devel mailing list