On Friday I built my first two Server Stack backends for Ext.Direct in Perl.
The first implementation (called simple) is there as a reference implementation. It is a useful source to help get you started porting Ext.Direct functionality to your own framework.
The second implementation (called modperl) is a more complete and functional implementation, and because all classes are loaded at Apache start time, it is quite fast.
I have not completed all functionality (e.g. file uploads).
Configuration - what format should the CPAN module accept?
To start a CPAN module use 'module-starter' command-line utility, provided in the Module::Starter distribution.
Originally Posted by scottpenrose
Class instantiation - do we need to bother? I have been calling the methods directly.
I'd recommend to use Moose - a modern class system implementation for perl. It will handle all the underlaying technical details, like providing constructors, etc.
Originally Posted by scottpenrose
What target - CGI, CGI via simple Module, Apache modperl?
Mostly I am concentrating on the ModPerl implementation, as that is the one I am currently using, but I can easily abstract it.
I'd recommend to create an abstract standalone implementation first, and then a plugin for Catalyst.
To start a CPAN module use 'module-starter' command-line utility, provided in the Module::Starter distribution.
:-) Not quite what I meant. I have been writing Perl for about 17 years, have lots of perl modules on CPAN - http://search.cpan.org/~scott/
What I mean is - configuration format. E.g. Config::Config, or Perl Data dump or JSON parsed. Because it is Apache we could use Apache format, but that tends to be a bit heavy weight.
Originally Posted by SamuraiJack1
I'd recommend to use Moose - a modern class system implementation for perl. It will handle all the underlaying technical details, like providing constructors, etc.
Thanks. I quite like Moose, I used to produce heaps of code using Class::Std.
Originally Posted by SamuraiJack1
I'd recommend to create an abstract standalone implementation first, and then a plugin for Catalyst.
Yes I think Catalyst is an important one to write for. I have done a few projects with Catalyst but I can't say I am an expert.
I think the best approach right now is to complete the missing bits in simple - such as file upload.
:-) Not quite what I meant. I have been writing Perl for about 17 years, have lots of perl modules on CPAN - http://search.cpan.org/~scott/
Sorry )
Originally Posted by scottpenrose
What I mean is - configuration format. E.g. Config::Config, or Perl Data dump or JSON parsed. Because it is Apache we could use Apache format, but that tends to be a bit heavy weight.