Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68797 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7876 invoked from network); 31 Aug 2013 22:39:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Aug 2013 22:39:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=mtdowling@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mtdowling@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.174 as permitted sender) X-PHP-List-Original-Sender: mtdowling@gmail.com X-Host-Fingerprint: 209.85.223.174 mail-ie0-f174.google.com Received: from [209.85.223.174] ([209.85.223.174:52157] helo=mail-ie0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/F8-55332-9B072225 for ; Sat, 31 Aug 2013 18:39:54 -0400 Received: by mail-ie0-f174.google.com with SMTP id k14so5601694iea.5 for ; Sat, 31 Aug 2013 15:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:from:subject:date:to; bh=Pgup4+MsZYAqcULGsZjSVfOHrllE00hAEQjXKgHwKkY=; b=EnuENih9MFNyJV43YFSM8+d20tLcvg2iO1euJ6jHa/WMkyMbbGYb+ZwOM9P/eG3U4m slcNMTzcZPQ2OWT1galNEjK1pLKBUozhqCjqe0YRvK0aB1jDOd/C3I04vezKfwm8r6cf 7tjOlwNPyVFm8A5/uOwhCl+2xJhg/DUN8k8K06M7kGpBICEW820nQgB6pngVI7eEI0eV ktOoqxt3QL4ZNgXOe7w9iDUgeIN2tFrWmHnxhVmuM2m0BNu4LGJytYAbWIYB0juRZa6m 5YKCHQalfLtMUBw7GCemioqIkfaRIxb0rYrj9p3ycmIzxzpA6qV6daqk2l5Rj1Bm4Ajw ek3A== X-Received: by 10.42.250.148 with SMTP id mo20mr9285372icb.34.1377988791223; Sat, 31 Aug 2013 15:39:51 -0700 (PDT) Received: from [10.193.77.203] (mobile-166-147-080-194.mycingular.net. [166.147.80.194]) by mx.google.com with ESMTPSA id yt10sm13671640igb.9.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 31 Aug 2013 15:39:50 -0700 (PDT) References: <5220262A.6040702@sugarcrm.com> <5220437A.7050008@sugarcrm.com> <5220D212.3010101@sugarcrm.com> <61FCD6C4A31248078FEAD2BA73D7CD44@gmail.com> <7AF31CC1D1554454AC95AE758D23E92E@gmail.com> In-Reply-To: <7AF31CC1D1554454AC95AE758D23E92E@gmail.com> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Message-ID: <17AC90C8-2252-40D0-81D2-30BE21E32904@gmail.com> Cc: Sebastian Krebs , Nikita Popov , Stas Malyshev , Sara Golemon , Anthony Ferrara , "internals@lists.php.net" X-Mailer: iPhone Mail (10B350) Date: Sat, 31 Aug 2013 15:39:46 -0700 To: Vartolomei Nicolae Subject: Re: [PHP-DEV] Re: Function autoloading From: mtdowling@gmail.com (Michael Dowling) Python packages often place convenience functions (e.g., factory methods) in= __init__.py files. There's nothing wrong with that. It would be great to be= able to do something similar in PHP. Sure beats creating classes called Uti= l. Thanks, Michael On Aug 31, 2013, at 2:57 PM, Vartolomei Nicolae wrot= e: > On Saturday, August 31, 2013 at 9:03 PM, Sebastian Krebs wrote: >=20 >> I already _have_ create files for functions of a namespace... Closed sour= ce. > Can we take a look at them as an example? Maybe we can give you some advic= e > how to refactor this code :) >=20 >> Not everything can be found in the 5 most popular frameworks. > Sure, but best practices usually are found there. >=20 >> The lack of logic is: Why is it actually missing? > Why humans don=E2=80=99t have one leg more, on head? >=20 > I really want to look at an example for this. Looks like you are the only o= ne who needs this. >=20 > Oh, is OOP that bad for you? Also constant autoloading looks so bad, I wan= t to see an example of this too for sure. >=20 > Please don=E2=80=99t consider these questions like you need to prove somet= hing to me, > I=E2=80=99m asking them hoping that anwers will help all internals to unde= rstand problem you are trying to solve. >=20 > kindly, > nvartolomei >=20 >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20