I think Andrew meant to send this to the list:

----- Original Message ----- From: "Andrew Bidochko" <[EMAIL PROTECTED]>
To: "Matthew Ratzloff" <[EMAIL PROTECTED]>
Sent: Monday, February 19, 2007 6:51 PM
Subject: Re: [fw-general] Consistency in naming


Zend_Validator indeed!
We already used the same approach to build one internal framework.

Also I suggest to use Zend_Data_Validator name instead of a plain
Zend_Validator.
What do you think?

On 2/19/07, Matthew Ratzloff < [EMAIL PROTECTED]> wrote:

There seem to be a few issues with naming consistency of the framework
components. Nearly all of them have Zend_(noun) as the pattern, but there
are some that don't.

Unlike classes like Zend_Search or Zend_Filter, Zend_Validate and
Zend_Translate can only be verbs, and should be changed to a noun form to
match the rest of the framework.

Zend_Validate => Zend_Validator
Zend_Translate => Zend_Translator

In subclasses:

Zend_Acl_Assert => Zend_Acl_Assertion
Zend_Mail_Read (wherever it went) => Zend_Mail_Reader
Zend_Mime_Decode => Zend_Mime_Decoder

Consistency means predictability, which means being able to recall names
without having to check the manual every time. It's why most people can't
use PHP's date or string functions without looking at the documentation,
for
example.

-Matt




Reply via email to