Re: allfiles.php has nothing to do with performance -please read the proposal CAREFULLY
| From: | Travis Swicegood | Date: | Tue, 28 Aug 2007 16:33:25 +0000 |
| Subject: | Re: allfiles.php has nothing to do with performance -please read the proposal CAREFULLY | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-47885@lists.php.net to get a copy of this message | ||
I really tried not to respond, but here goes :-)
On Aug 28, 2007, at 9:36 AM, Philippe Jausions wrote:
That's actually an excellent point. Maybe that's a reason for using an autoloader by default for "beginners". It provides them a base reference and something real to include. All PEAR2 scripts begin with "require_once 'PEAR2/loader.php';". To the beginner that means "I've loaded PEAR2", to the more attuned user it means "cut that line because I already have my other PEAR2-compatible loading strategies in place". -TravisLet's not put a (bad) solution in the hands of beginners, they will take it as this is the best way to do it, when this is absolutely not the case, at least not directly out of the "package box". Beginners specially will not go the extra mile to understand package dependency and include file order, etc... This will result in "PEAR is bloated" feeling and turn off such beginners -- one could also make the argument that a beginner would not know what bloated code is, but it's no way to educated people by giving them bad tools to start with.The purpose of allfiles.php is to provide a vector to do two things: 1) beginners who just want to see how a package works and do not yet have PEAR installed can simply use this procedure to try a package out