Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20437 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77555 invoked by uid 1010); 25 Nov 2005 20:12:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77540 invoked from network); 25 Nov 2005 20:12:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2005 20:12:27 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:49406] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id FB/F6-56276-B2077834 for ; Fri, 25 Nov 2005 15:12:27 -0500 Received: from [192.168.1.3] (dslb-084-063-047-015.pools.arcor-ip.net [84.63.47.15]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 16C8D610284; Fri, 25 Nov 2005 21:18:38 +0100 (CET) Date: Fri, 25 Nov 2005 21:10:28 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1021295893.20051125211028@marcus-boerger.de> To: Matthias Pigulla Cc: Derick Rethans , internals@lists.php.net In-Reply-To: <00A2E2156BEE8446A81C8881AE117F192C1D08@companyweb> References: <00A2E2156BEE8446A81C8881AE117F192C1D08@companyweb> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: AW: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps outthere) From: helly@php.net (Marcus Boerger) Hello Matthias, i think you didn't understand the whole point here. Naming something after an every day word just like 'Date' is like screaming for problems in bigger scenarios. It is a beginners mistake to not prefix such stuff. And if you weren't in a big project - well then simply rename your few hundred lines of code. Use some nice tools like Ultraedit since your a windows user the renaming is only a few clicks a way. marcus Friday, November 25, 2005, 12:39:45 PM, you wrote: >> I didn't say that my code is more important, but if we don't >> get the date class now, we will get it in 5.1.1 and then >> break your code - so that doesn't really matter. THe only >> correct solution is to start prefixing the pear date class, >> as that needs to be done in the long run anyway. > Derick, this is not only about the PEAR date class but about pretty much > every larger PHP codebase/project. You don't seem to understand the > impact. >> No no, the core reserves the right to name whatever they >> want, it's the userland code that is responsible for >> prefixing their classes. > Actually I just decided to work through my 100,000 lines of code and > rename every class; for the sake of forwards compatibility, I'll > generate GUIDs for each class and keep a mapping table on my desktop. > Oh, and while I'm at it, I'll switch over to some other language as > well. > -mp. > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php Best regards, Marcus