|
|
|
#51 |
|
Messages: n/a
Hébergeur: |
On Wed, January 30, 2008 9:42 pm, Nathan Nobbe wrote:
> On Jan 30, 2008 7:58 PM, Richard Lynch <ceo@l-i-e.com> wrote: >> I don't use SPL because it makes my head spin to read it, and I >> never >> ever try to do something as silly as iterate over a *LARGE* array in >> end-user pages. > > are there pages where you iterate over the same 'small' array more > than > once? No. > spl will definitely beat out the foreach performance over the > arrays. The performance is irrelevant unless it's the bottleneck, which it's not. > its really not that bad to learn, and once you have it down, its so > easy. > you can decorate one thing w/ another to get new behavior at runtime. > suppose you have a structure, you want to get some stuff out of it. > ok, > iterate over it, but wait you dont want all of it, wrap it in a > FilterIterator, > but wait, you might need those results again, wrap it in a > CachingIterator. > not only is the library seamless, but its faster than the stock stuff. > and > it has lots of other useful features as well, besides the iterators. I tried several times to use SPL and SPL-like frameworks. I always felt confused by the names, no matter how long I used them... "You are in a maze of twisty dark passages, all alike." :-) ymmv -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? |
|
|
|
#52 |
|
Messages: n/a
Hébergeur: |
On Jan 30, 2008 7:21 PM, Jochem Maas <jochem@iamjochem.com> wrote:
> Greg's my hero of the day - even if he has been banging the Ruby drum on > the PHP Stage half the night ;-) PHP is a great language. I don't plan to stop using it anytime soon. -- Greg Donald http://destiney.com/ |
|
![]() |
| Outils de la discussion | |
|
|