NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
OIO Assistance (Score:1)
While OIO's POD does discuss some of the advantages of using the inside-out object model, it also lists several more involved discussions on the matter including Damian Conway's book Perl Best Practices.
OIO does provide methods for maintaining persistent data, bu
Re: (Score:2)
The number of places where it was needlessly complex and required copy and pasting where any sensible Class framework allows you to just specify the columns and have it DTRT.
"OIO does provide methods for maintaining persistent data, but not directly to a database. However,
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
The Right Tool for the Job (Score:1)
It's not a requirement - it's optional. Cut out the regexes, and your preformance will go up (probably significantly). The regex option is there to provide greater programming flexibility if that is desired. As with any feature, if it's not needed, then don't use it.
"There is a great deal more to useful object persistence than a couple of SQL statements..."
The requirement to tie your objects to a database was evidently something the original coder failed to properly take into account. As OIO does not support this sort of thing, then obviously it was not the right tool for the job. It's senseless to condemn the screwdriver for not being a very good hammer.
"O::IO and it's ilk are interesting illustrations of some concepts but have no place in production code."
In your humble opinion, of course. OIO is being used quite a bit in production code (based on the correspondences I have had with users). So it's down do agreeing to disagree.
'Nuff said. Good luck with your rewrite. Sorry I couldn't be of any help.
Reply to This
Parent
Re: (Score:2)
Class::Accessor and it's like allow me to specify my attributes in a single line, even Moose is less bizarre in how you specify attributes.
I'm surprised people would choose to use O::IO in production code, I certainl
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;