Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33727 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59258 invoked by uid 1010); 5 Dec 2007 10:49:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59243 invoked from network); 5 Dec 2007 10:49:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2007 10:49:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=robert@typo3.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=robert@typo3.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain typo3.org from 217.72.131.73 cause and error) X-PHP-List-Original-Sender: robert@typo3.org X-Host-Fingerprint: 217.72.131.73 mail.elios.de Linux 2.4/2.6 Received: from [217.72.131.73] ([217.72.131.73:40094] helo=mail.elios.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/C5-20707-22286574 for ; Wed, 05 Dec 2007 05:49:07 -0500 Received: from [192.168.0.6] (pD9EE4909.dip.t-dialin.net [217.238.73.9]) by mail.elios.de (Postfix) with ESMTP id 2D8195043CE; Wed, 5 Dec 2007 11:49:03 +0100 (CET) Cc: PHP Developers Mailing List Message-ID: To: Ronald Chmara In-Reply-To: <6C783BAF-1E52-44C3-AC07-C741016E9354@opus1.com> Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-1--498793923" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Wed, 5 Dec 2007 11:48:58 +0100 References: <6C783BAF-1E52-44C3-AC07-C741016E9354@opus1.com> X-Pgp-Agent: GPGMail d49 (Leopard) X-Mailer: Apple Mail (2.915) Subject: Re: [PHP-DEV] RFC: Dropping Namespace From: robert@typo3.org (Robert Lemke) --Apple-Mail-1--498793923 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Ronald, Am 05.12.2007 um 11:08 schrieb Ronald Chmara: > http://www.phpbuilder.com/lists/php-documentation-list/ > 2001071/0109.php > > I, for one, would not enjoy typing out: > "T3_MyPackage_MySubPackage_Controller_DefaultController" any more > often than I absolutely *had* to. well, in a way I agree - I don't like typing more than I need either. However, for me verbose naming of methods, variables and classes is a very important factor for readable (and maintainable) code - but that's probably yet another story. Especially in a framework context there a lot of options how you can make things more convenient, with convention over configuration for example. In the end it might turn out that a developer doesn't have to type class names that often anymore and the length of such a name gets less important. Finally, another important reason for us to not use namespaces is the lack of available refactoring tools. Imagine you want to rename a class "T3_Cool_Fancy_Stuff" to "T3_Cool_Fancy_Tool". A global search / replace and renaming the class file will usually do - if you use the full class name everywhere. However, just trying to search and replace "Stuff" will probably break your code. robert -- http://typo3.org/gimmefive http://buzz.typo3.org/people/robert-lemke/ --Apple-Mail-1--498793923 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFHVoIeDu+3qCHvGSIRAhGAAKDKx4TxrgkIUGTjO0+jvXWZT8Iq8QCffjpP DsXxrVos/obO6Z4KH0UTebw= =Syt3 -----END PGP SIGNATURE----- --Apple-Mail-1--498793923--