Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7068 > unrolled thread
| Started by | "J. Frank Parnell" <juglesh@gmail.com> |
|---|---|
| First post | 2012-09-14 12:35 -0700 |
| Last post | 2012-09-16 17:46 -0400 |
| Articles | 7 on this page of 27 — 8 participants |
Back to article view | Back to comp.lang.php
How expensive is glob'ing a dir and including all the files? "J. Frank Parnell" <juglesh@gmail.com> - 2012-09-14 12:35 -0700
Re: How expensive is glob'ing a dir and including all the files? Eli the Bearded <*@eli.users.panix.com> - 2012-09-14 19:41 +0000
Re: How expensive is glob'ing a dir and including all the files? "J. Frank Parnell" <juglesh@gmail.com> - 2012-09-14 15:24 -0700
Re: How expensive is glob'ing a dir and including all the files? Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-14 19:24 -0400
Re: How expensive is glob'ing a dir and including all the files? Michael Fesser <netizen@gmx.de> - 2012-09-15 01:43 +0200
Re: How expensive is glob'ing a dir and including all the files? Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-14 21:45 -0400
Re: How expensive is glob'ing a dir and including all the files? "J. Frank Parnell" <juglesh@gmail.com> - 2012-09-16 10:50 -0700
Re: How expensive is glob'ing a dir and including all the files? Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-16 17:45 -0400
Re: How expensive is glob'ing a dir and including all the files? "J. Frank Parnell" <juglesh@gmail.com> - 2012-09-16 16:00 -0700
Re: How expensive is glob'ing a dir and including all the files? Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-16 20:17 -0400
Re: How expensive is glob'ing a dir and including all the files? Salvatore <sal@yojimbo.hack.invalid> - 2012-09-14 19:44 +0000
Re: How expensive is glob'ing a dir and including all the files? Anders Wegge Keller <wegge@wegge.dk> - 2012-09-15 08:08 +0200
Re: How expensive is glob'ing a dir and including all the files? Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-15 09:14 -0400
Re: How expensive is glob'ing a dir and including all the files? Anders Wegge Keller <wegge@wegge.dk> - 2012-09-15 23:41 +0200
Re: How expensive is glob'ing a dir and including all the files? Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-15 18:06 -0400
Re: How expensive is glob'ing a dir and including all the files? Anders Wegge Keller <wegge@wegge.dk> - 2012-09-16 00:10 +0200
Re: How expensive is glob'ing a dir and including all the files? Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-15 18:21 -0400
Re: How expensive is glob'ing a dir and including all the files? Anders Wegge Keller <wegge@wegge.dk> - 2012-09-16 00:39 +0200
Re: How expensive is glob'ing a dir and including all the files? Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-15 18:45 -0400
Re: How expensive is glob'ing a dir and including all the files? Anders Wegge Keller <wegge@wegge.dk> - 2012-09-16 00:59 +0200
Re: How expensive is glob'ing a dir and including all the files? The Natural Philosopher <tnp@invalid.invalid> - 2012-09-16 00:09 +0100
Re: How expensive is glob'ing a dir and including all the files? Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-15 19:19 -0400
Re: How expensive is glob'ing a dir and including all the files? Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-15 19:27 -0400
Re: How expensive is glob'ing a dir and including all the files? The Natural Philosopher <tnp@invalid.invalid> - 2012-09-15 23:38 +0100
Re: How expensive is glob'ing a dir and including all the files? "Peter H. Coffin" <hellsop@ninehells.com> - 2012-09-16 09:37 -0500
Re: How expensive is glob'ing a dir and including all the files? Anders Wegge Keller <wegge@wegge.dk> - 2012-09-16 17:32 +0200
Re: How expensive is glob'ing a dir and including all the files? Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-16 17:46 -0400
Page 2 of 2 — ← Prev page 1 [2]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-09-16 00:09 +0100 |
| Message-ID | <k331ri$mcl$1@news.albasani.net> |
| In reply to | #7084 |
Anders Wegge Keller wrote: > Jerry Stuckle <jstucklex@attglobal.net> writes: > >> On 9/15/2012 6:39 PM, Anders Wegge Keller wrote: >>> Jerry Stuckle <jstucklex@attglobal.net> writes: >>> >>>> Since when is the truth an insult? >>> That's why you are unable to insult me. >>> >> Glad you admit it's the truth. > > No, that's just to get rid of you. Your truth is that of a little > man, stuck on coding 100 hits/day webshops, hosted on GoDaddy. No. Jerry has never written any code at all. No on this NG at least. His mindset is almost pure COBOL large company, can't spot the asshole, really. Think about the time you worked for Systems Programming Inc. And there was this one fat guy with pebble glasses who was so BAD at coding and so anal that eventually they took him off writing code at all. He was really GOOD at reading manuals even if he didn't understand much of what he read, and so he found a place telling people what was in the manual when they were too busy to look it up. Then he got sacked so he started up a one man business offering training courses to TELL people what was in the manuals. But eventually people found it wsa cheaper to buy the manual and tell people to read it, so he vents his spleen here by telling newbies what's in the manual. A deeply bitter man whom life has passed by, because he was never prepared to accept that he was crap at all the things he aspired to. So he spends his life on total denial. Your > truth is a constant lack of self-esteem, constant craving for > recognition, and constant lack of basic concepts, such as amortized > complexity, big-O notation, and for the lack of a better word, grasp > of language. > Go with the territory above > You are unable to inslult me, because you are lying to yourself, when > you claim your half-witted cargo-cult programming as truth. Not > because I consider anything you say to be truth. Indeed. > > You are a case out of psychology 101, and I pity you for having such > a shitty life. Normally I ignore yoy, but whenever you happen to > respond to me, your post is lifted above the kill-file. I'm sorry if I > gave you the impression that I normally read your mistaken ramblings. > I don't. Life is too short. -- Ineptocracy (in-ep-toc’-ra-cy) – a system of government where the least capable to lead are elected by the least capable of producing, and where the members of society least likely to sustain themselves or succeed, are rewarded with goods and services paid for by the confiscated wealth of a diminishing number of producers.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2012-09-15 19:19 -0400 |
| Message-ID | <k332fk$dhv$1@dont-email.me> |
| In reply to | #7084 |
On 9/15/2012 6:59 PM, Anders Wegge Keller wrote: > Jerry Stuckle <jstucklex@attglobal.net> writes: > >> On 9/15/2012 6:39 PM, Anders Wegge Keller wrote: >>> Jerry Stuckle <jstucklex@attglobal.net> writes: >>> >>>> Since when is the truth an insult? >>> >>> That's why you are unable to insult me. >>> >> >> Glad you admit it's the truth. > > No, that's just to get rid of you. Your truth is that of a little > man, stuck on coding 100 hits/day webshops, hosted on GoDaddy. Your > truth is a constant lack of self-esteem, constant craving for > recognition, and constant lack of basic concepts, such as amortized > complexity, big-O notation, and for the lack of a better word, grasp > of language. > > You are unable to inslult me, because you are lying to yourself, when > you claim your half-witted cargo-cult programming as truth. Not > because I consider anything you say to be truth. > > You are a case out of psychology 101, and I pity you for having such > a shitty life. Normally I ignore yoy, but whenever you happen to > respond to me, your post is lifted above the kill-file. I'm sorry if I > gave you the impression that I normally read your mistaken ramblings. > > No, I'm not you. I have no websites hosted by GoDaddy. I do have my own VPS's, though. And I have sites with > 1K pages (no, that's not one page displaying 1K different rows in a database) and gets over 100K page views (not hits, mind you) per day. And you have no idea what complexity is. All you've ever done is one-man projects of a few lines of code. How about a project with over 50 programmers on it that lasts for almost 3 years? Over 1M lines of code. That's the kind of projects I've done in the past. But it really makes me laugh that guys like you who get a toy site running a few scripts and a 100 hits/day think you know everything. You've already admitted you've never worked on a multi-programmer project. You really have no idea what a real programmer does. And neither does your fellow troll TNP (who has also proven he isn't the EE he claims to be). -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2012-09-15 19:27 -0400 |
| Message-ID | <k332te$fci$1@dont-email.me> |
| In reply to | #7084 |
On 9/15/2012 6:59 PM, Anders Wegge Keller wrote: <snip> Oh, and about the Psychology 101 comment - you really shouldn't try to pass your insecurities off on other people. You should get help for you own problems. But you're completely unable to admit that maybe, just maybe, someone who's been programming longer than you've been alive might know something you don't. OTOH, I'm at the age now that I really don't give a damn about what twerps like you think. My customers pay me very well for what I do - because they know my capabilities. A lot more than you'll ever see, that's for sure. But then I don't have to bid for work on the job sites. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-09-15 23:38 +0100 |
| Message-ID | <k3300g$j42$1@news.albasani.net> |
| In reply to | #7079 |
Anders Wegge Keller wrote: > Jerry Stuckle <jstucklex@attglobal.net> writes: > >> But then we all know when you only work on 5 page sites which >> receive 100 page views/day, you can get away with this. But we know >> you'd never be able to handle a decent sized site. > > You are too easy. Code similar to this is the central part of > Mediawiki, the software that runs this small 100-hits/day-site, called > wikipedia. > > Go get a new book of insults. The one you use is clearly outdated, > just as your grasp of reality, good coding practices for the 21st > century and project managing. > +1 -- Ineptocracy (in-ep-toc’-ra-cy) – a system of government where the least capable to lead are elected by the least capable of producing, and where the members of society least likely to sustain themselves or succeed, are rewarded with goods and services paid for by the confiscated wealth of a diminishing number of producers.
[toc] | [prev] | [next] | [standalone]
| From | "Peter H. Coffin" <hellsop@ninehells.com> |
|---|---|
| Date | 2012-09-16 09:37 -0500 |
| Message-ID | <slrnk5bp24.h39.hellsop@nibelheim.ninehells.com> |
| In reply to | #7077 |
On 15 Sep 2012 23:41:18 +0200, Anders Wegge Keller wrote:
> Jerry Stuckle <jstucklex@attglobal.net> writes:
>
>> On 9/15/2012 2:08 AM, Anders Wegge Keller wrote:
>> > "J. Frank Parnell" <juglesh@gmail.com> writes:
>> >
>> >> So, my question is, am I saving a significant amount of ram/cpu/time
>> >> by keeping this cache of filenames or should I just glob the dir and
>> >> include what's in there everytime?
>> >
>> > You may want to consider autoloading classes as needed. See
>> > http://php.net/manual/en/language.oop5.autoload.php
>> >
>> > This approach is of course dependent on using PHP5 *and* having an
>> > OO design.
>> >
>>
>> Additionally, you're never sure which module you got.
>
> Speaking from experience?
>
>> All kinds of hard-to-diagnose things can happen when someone uploads
>> a module of the same name but earlier in the search path.
>
> You let "someone" muck around with your code? Are you hosting at
> GoDaddy or something like that?
"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.
--
31. All naive, busty tavern wenches in my realm will be replaced with
surly, world-weary waitresses who will provide no unexpected
reinforcement and/or romantic subplot for the hero or his sidekick.
--Peter Anspach's list of things to do as an Evil Overlord
[toc] | [prev] | [next] | [standalone]
| From | Anders Wegge Keller <wegge@wegge.dk> |
|---|---|
| Date | 2012-09-16 17:32 +0200 |
| Message-ID | <87txuyaspj.fsf@huddi.jernurt.dk> |
| In reply to | #7088 |
"Peter H. Coffin" <hellsop@ninehells.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.
--
/Wegge
Leder efter redundant peering af dk.*,linux.debian.*
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2012-09-16 17:46 -0400 |
| Message-ID | <k35hc7$bo2$2@dont-email.me> |
| In reply to | #7089 |
On 9/16/2012 11:32 AM, Anders Wegge Keller wrote:
> "Peter H. Coffin" <hellsop@ninehells.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@attglobal.net
==================
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.php
csiph-web