On 09/24/2012 03:24 PM, Alex C wrote:
On 23 September 2012 01:27, gvim<[email protected]>  wrote:
I'm converting a CGI::Application web app to Dancer and have always used a
modular approach so am I missing something if I prefer to do it this way:

I think this is a very nice technique. My Routes.pm is growing to
3000 lines and I think I will refactor it using this same technique
you have suggested.

The only disadvantage I can think of, is if you have many routes, then
that might slow down startup as each file has to be read from disk.

Alex

IMHO that should be negligible on a decent system, especially as already
read a lot of files (modules from Dancer and prerequisites).

In most cases (code) maintenance costs are greater than costs for resources.

Regards
        Racke

--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

_______________________________________________
Dancer-users mailing list
[email protected]
http://www.backup-manager.org/cgi-bin/listinfo/dancer-users

Reply via email to