[Bioperl-l] bioperl-db: adaptors

Hilmar Lapp hlapp@gnf.org
Mon, 8 Jul 2002 20:23:03 -0700


Along the tests I'll be fixing adaptors as needed. What I already realized is that the virtual absence of any documentation makes a programmer's life particularly both easy and enjoyable. Whenever I'll fix a method I'll try to at least add arguments and return values along with types, provided that I understand what they are supposed to be. It'd be helpful if other contributors could (try to) do at least that, too.

As for adaptor methods, it is generally useful for callers if the methods return something (there are only few cases in which there's nothing meaningful to return). I'll fix the remove_XXX methods along my way (these may be a limited number only) to return the number of actually deleted entries (DBI returns that), but for a consistent behaviour we probably have to go through these in a concerted effort.

Another thing I've noticed is the style to quote variable values in SQL statements by hand instead of having the DBD driver do that (which is most likely at least as good at that, but probably many times better). Unless there's a particular design decision behind that, I'll also fix that where I find myself fixing something already, but for a general car detailing there needs to be a concerted effort or more time.

Shout if you think this is going to interfere with your client code.

	-hilmar
-- 
-------------------------------------------------------------
Hilmar Lapp                            email: lapp at gnf.org
GNF, San Diego, Ca. 92121              phone: +1-858-812-1757
-------------------------------------------------------------