PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > first php 5 class
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
first php 5 class

Réponse
 
LinkBack Outils de la discussion
Vieux 31/01/2008, 19h37   #51
Richard Lynch
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] first php 5 class

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?
  Réponse avec citation
Vieux 01/02/2008, 03h08   #52
Greg Donald
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] first php 5 class

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/
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 04h18.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07261 seconds with 10 queries