Hi,
To me so far these are just nifty buzzwords that I don't really
understand. I'm not an oo programmer but i understand the terms. I
just have no clue how to implement them.
I would guess a good startt would be reading up on Perl
packages/module layouts etc, but I was wondering if anyone could give
me agood example of how "code sharing" might actually work in a real
work CGI::App example.
I guess I"m saying that in most C::A liturature it says the bonus is
code reuse and sharability, but i'm not sure how i should be coding
my stuff to take best advantage of it.
Most apps i write use the standard stuff like this
=====
my $_driver = driver->new();
$_driver->run();
=====
and then the driver module has stuff like prerun, postrun, destroy and
a few extra things.
from project to project driver.pm pretty much stays the same and is
just copied from project to project..
Is this what is meant by reusing ? or is there an even better way ?
--
Jeff MacDonald
http://www.halifaxbudolife.ca
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.