Hi.

I don't want this to come across as a troll at all, but some object oriented 
philosophies disagree strongly with method chaining:

http://www.netwise.it/xml/perlmonks/?node_id=417872

Obviously chaining provides kinds of shortcuts that aren't otherwise available 
and it's going to be a matter of preference and opinion about it but I'm 
interested in hearing jQuery developers' and or longtime users' perspectives.

Note that in digging this back up, I came across lots of great "considered 
harmful" rants, including short circuit OR operator, tabs, AJAX, javascript 
associative arrays, "considered harmful" essays, and of course the goto 
statement.

---->Nathan



.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:.

Nathan Young
Cisco.com->Interface Development
A: ncy1717
E: [EMAIL PROTECTED]  

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Alexandre Plennevaux
> Sent: Wednesday, March 07, 2007 4:01 PM
> To: 'Ⓙⓐⓚⓔ'; 'jQuery Discussion.'
> Subject: Re: [jQuery] regular expressions
> 
> Ah, the jQuery way, of course :) 
> 
> Thanks Jake 
> 
> -----Original Message-----
> From: Ⓙⓐⓚⓔ [mailto:[EMAIL PROTECTED] 
> Sent: jeudi 8 mars 2007 0:48
> To: [EMAIL PROTECTED]; jQuery Discussion.
> Subject: Re: [jQuery] regular expressions
> 
> 1 command , 2 replaces
> 
> var newString = oldString.replace(/X/,"-").replace(/Y/,"")
> 
> 
> 
> On 3/7/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote:
> >
> >
> > hello!
> >
> > I'm experimenting with regular expressions, and i would like to 
> > replace in a string some special characters by a "-" minus 
> sign, and 
> > others by just removing it.
> > Do i need ot make two regex.replace(), or is it possible to 
> have both 
> > in one command?
> >
> > thank you very much for your time!
> >
> > Alexandre
> >
> >
> >
> >
> >
> > --
> >  Ce message Envoi est certifié sans virus connu.
> >  Analyse effectuée par AVG.
> >  Version: 7.5.447 / Base de données virus: 268.18.7/712 - Date: 
> > 6/03/2007
> > 15:42
> >
> > _______________________________________________
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
> 
> 
> -- 
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
> 
> -- 
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.447 / Base de données virus: 268.18.7/712 - 
> Date: 6/03/2007 15:42
>  
> 
> 
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to