On 13 December 2011 06:11, LAURENT Henri-Damien <[email protected]> wrote:
>> > Hi, > in my opinion, it is not "dual-purpose" script, > command-line or web interface, it is the same process you want. > duplicating code and editing to make the code commandline compliant > would be far harder to maintain and keep synched than having the script > callable via command-line and web. In my opinion, we have enough > exemples of copy paste edit code in Koha, to see how un maintainable > that behaviour is and to be willing to restrain from that from now on. > This is my opinion. I agree, if code is used in more than one place it should be in a module, in fact our scripts should be as lightweight as possible and as close to simple wrappers for functionality in perl modules. So I agree that we should not copy paste code, but we should cut and paste it into modules and have the scripts use it from there. Chris _______________________________________________ Koha-devel mailing list [email protected] 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/
