Skip to Content.
Sympa Menu

devel - Re: [sympa-developpers] database connection pooling

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: IKEDA Soji <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-developpers] database connection pooling
  • Date: Wed, 12 Mar 2014 00:17:20 +0900

On Tue, 11 Mar 2014 12:38:10 +0100
Guillaume Rousse <address@concealed> wrote:

<<snip: discuss later again>>

> > BTW: The naming "Sympa::DatabaseManager" feels too long for me.
> > March of such as many "Sympa::DatabaseManager::quote(...)" can be
> > hard to read. I prefer to "Sympa::DBM", at least "Sympa::DBManager".
> Don't use cryptic abbreviation you're the only one to understand just
> for cosmetic reasons.
>
> A better solution is to simplify and rationalise the names currently
> used. It seems silly to have a 'DatabaseManager' concept, when you don't
> have a 'Database' one...
>
> And even better, use instance methods instead of functions:
> my $manager = Sympa::DatabaseManager::WhateverNameYouWant->new();
> $manager->quote();

I got it! With instantiation, my concern is groundless.

Regards,

--- Soji


--
株式会社 コンバージョン セキュリティ&OSSソリューション部 池田荘児
〒231-0004 神奈川県横浜市中区元浜町3-21-2 ヘリオス関内ビル7F
e-mail address@concealed TEL 045-640-3550
http://www.conversion.co.jp/




Archive powered by MHonArc 2.6.19+.

Top of Page