Re: How expensive is glob'ing a dir and including all the files? [message #179164 is a reply to message #179161] |
Sun, 16 September 2012 21:46 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 9/16/2012 11:32 AM, Anders Wegge Keller wrote:
> "Peter H. Coffin" <hellsop(at)ninehells(dot)com> writes:
>
>> "Someone" could be another developer working on the same project of
>> even yourself comeing back to the code after ignoring it for a few
>> years. An awful lot of code looks completely foreign with three
>> years on it, even if one was completely familier with it back then.
>
> In that case, you are equally fscked, using
> require('somemodule.php'), when three years down the road, you add a
> module with the same name elsewhere in the search path.
>
That's because you don't use a search path. You give the location of
the file you're including (relative or absolute).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|