You are here: Re: how do people feel about the PEAR db class? « PHP Programming Language « IT news, forums, messages
Re: how do people feel about the PEAR db class?

Posted by NC on 03/13/06 06:40

Richard Levasseur wrote:
>
> What abstraction layers lose in performance (which is miniscule,
> for the most part), they gain in ease of use, portability, and
> maintainability.

I respectfully disagree.

Ease of use is a matter of opinion; what is easy to me is not
necessarily easy to you and vice versa. Our discussion is the case in
point; you think it is possible to simplify database access by
introducing an abstraction layer, while I think that calls to native
API functions are simple enough... :)

Portability (if, in the context of this discussion, we define it as the
application's ability to use multiple database engines) and
maintainability are conflicting goals -- maintainability decreases with
the size of code base, while portability requires expansion of the code
base, so portable applications are by definition more difficult to
maintain. Code that does not rely on abstraction layers is by
definition more maintenable, simply because developers don't have to
maintain the abstraction layers themselves.

Loss of performance, however, is objectively measurable and LARGE (at
least, that's what phpLens benchmarks show, and, to the best of my
knowledge, no one has produced a benchmark test with markedly different
results). There is no evidence that points to "miniscule" performance
losses you spoke of; the evidence suggests that the losses are
substantial. If you are aware of any benchmarks that support your
claim, please share your knowledge, and I will happily reconsider my
position.

Cheers,
NC

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация