#perl - Tue 24 Apr 2007 between 01:58 and 15:16



revdiabloForget HTML, send back JSON and munge the DOM
jsoftwpstickne_: are you kidding? Its got a lot nicer looking syntax than perl.. I dont care if you 'can write nice perl', perl always seems to look like a mess. And look at php's classes compared to perl.
f00li5h(although the ajax may get in the way of spam bots and screen readers alike)
jsoftwBut im not really going to argue about it any further :)
revdiablojsoftw: Don't be silly
f00li5hjsoftw: i've seen terrible php classes
revdiablojsoftw: Both languages allow you to write crap code
f00li5hterrible horrible classes
pasteling"Cbro" at 58.164.221.207 pasted "Code for replacing non printable characters" (34 lines, 654B) at http://sial.org/pbot/24454
f00li5hfull of suffering and pain
torment and anger
Khisanthjsoftw: that is an invalid argument when using PHP as an example
f00li5hWHY!? WHY DO IT?
Jmax-array() // nice syntax?
revdiablojsoftw: You need discipline to write good PHP just as well as you do to write good Perl
actiondondelelcaro still has yet to see good php, actually
dondelelcarostill has yet to see good php, actually
CbroKhisanth: I have gone ahead and pasted what I am doing
f00li5harray_key_exists( 'key', $array) #in the other order ot getting the value of the key -_-
revdiablo: more so
far more so
hmm-home$myVar = ""?
Ani-_LeoNerd: It is a valid URI/URL.
dazjorzhmm-home: clear or unset?
LeoNerdIf you want the 17th picture in the 12th album, you will fetch /photos/album12/photo17.jpg
Jmax-hmm-home: undef
hmm-homedazjorz: unset
LeoNerdHow I implement that internally is my business
Jmax-hmm-home: perldoc -f undef
LeoNerdWhich I'll probably use my $r = ...->new( "/photos/album${ALB/\d+/}/photo${PHOTO/\d+/}.jpg" );
So... incoming URL... I check if it matches, if so I already know the ALBum and PHOTO id numbers.
Ani-_LeoNerd: Yes. That example is not the problem.
LeoNerdTo generate a new URL, I put the values in, and out it pops
Ani-_LeoNerd: the parameters are. The order can change. But your template needs the correct order. If you do not want to support them then that is your choice but be aware... At some point someone will want to use it. And then you need to start making up even uglier syntax.
LeoNerdIn this specific case of URLs, the query string is not part of the file path...
These get matched on the file path.. so I don't need to worry about that. They've already been stripped off and passed about as a hash
Ani-_But will it always be like that in the future aswell? That's the import question.
Do you really want to hack-in features to it as they are currently being hacked in the Perl 5 re engine?
LeoNerdI think I can start off by declaring "This is an order-specific operation"
After all... plain REs can't do that, can they?
rindolfHi Ani-_

Page: 3 10 17 24 31 38 45 52 59 66 73 80 87 

IrcArchive