Method Names (was: Stolen Ideas)

[prev] [thread] [next] [Date index for 2004/08/11]

From: Jay Strauss
Subject: Method Names (was: Stolen Ideas)
Date: 14:20 on 11 Aug 2004
Tony,

** Please don't take this as criticism **, just since it seems like you're
soliciting ideas, here is mine

I've always been sorta curious/befuddled about the CDBI method names.
It seems like CDBI never went with standard OO methods or standard
SQL, instead using both and neither.

retrieve, retrieve_all, search, search_like vs "select" or "find"  -- where
"select" could
take either (null) in which case it would act like retrieve_all, or an ID,
or a hash,
and search_like would be removed in favor for AbstractSearch, so if "select"
got a reference it would act like AbstractSearch

create vs insert or new

set vs update

find_or_create should at least be retrieve_or_create (just to stay
internally consistent)

add_trigger vs new_trigger
or ->new("trigger","before_insert",\&before_insert_code);
add_constructor vs new_select or ->new("select",recent_data,qq{create_date >
?});

Then tackle the whole using database functions like sysdate elegantly in
CDBI :)

Jay


(message missing)

Method Names (was: Stolen Ideas)
Jay Strauss 14:20 on 11 Aug 2004

Re: Method Names (was: Stolen Ideas)
Tony Bowden 22:14 on 11 Aug 2004

Re: Method Names (was: Stolen Ideas)
Jay Strauss 15:04 on 12 Aug 2004

Re: Method Names (was: Stolen Ideas)
Tony Bowden 15:54 on 12 Aug 2004

Re: Method Names (was: Stolen Ideas)
Jay Strauss 15:11 on 13 Aug 2004

Re: Method Names (was: Stolen Ideas)
Jay Strauss 16:35 on 14 Aug 2004

Pass a DBI Object?
Brian E. Lozier 18:22 on 14 Aug 2004

Re: Method Names (was: Stolen Ideas)
Tim Bunce 11:54 on 18 Aug 2004

Re: Pass a DBI Object?
Branislav Zahradnik 15:04 on 18 Aug 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52