Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Associative Databaseby Anno (Deacon) |
on Mar 10, 2007 at 17:25 UTC ( [id://604141]=note: print w/replies, xml ) | Need Help?? |
A couple of rather unrelated remarks.
In your constructor ->new you have the line That is bad construction, it won't allow anyone to subclass AssocDB. You should bless into the class the constructor was called through:
The term Associative Database, while suggestive, doesn't have an agreed-upon technical meaning (correct me if I'm wrong), so it would be necessary to add a minimum of documentation about the purpose and possible applications. As it is, the reader can pick up that such a beast has entities, predicates and relationships. You'd have to read the code to get an idea of how they interact to result in associations. To enable anyone to pick up the project with some confidence you'd have to add some documentation that explains these points. Anno
In Section
Cool Uses for Perl
|
|