App-Diskd
view release on metacpan or search on metacpan
lib/App/Diskd.pm view on Meta::CPAN
863864865866867868869870871872873874875876877878879880881As I
write
this, the size of the program is significantly less than
1,000 lines (not including this documentation),
while
still managing
to implement a reasonably complex network daemon. In all, it took
about an evening's work to code and eliminate most of the major
bugs. The reason
for
both the small size and quick development
time
can be attributed to the combination of Perl and POE. Despite this
being
my
first
time
writing any program using POE, the speed of
development was not down to amazing programming skill on
my
part. Rather, it boiled down to just one factor: almost all of the POE
code I have here was based, in one way or another, on example code
hosted on the L<POE Cookbook site|http://poe.perl.org/?POE_Cookbook>.
Since I had already
read
up sufficiently on POE (and the examples in
the cookbook) and knew in general how I wanted
my
daemon to work,
selecting the relevant recipes and reworking them was a pretty
straightforward process. Based on this experience, I would definitely
recommend other Perl programmers to consider POE
for
programs of this
sort
(network daemons) as well as
for
any other task where the an
event-based approach is suitable.
( run in 0.314 second using v1.01-cache-2.11-cpan-00829025b61 )