| revdiablo | Forget HTML, send back JSON and munge the DOM |
| jsoftw | pstickne_: 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) |
| jsoftw | But im not really going to argue about it any further :) |
| revdiablo | jsoftw: Don't be silly |
| f00li5h | jsoftw: i've seen terrible php classes |
| revdiablo | jsoftw: Both languages allow you to write crap code |
| f00li5h | terrible 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 |
| f00li5h | full of suffering and pain torment and anger |
| Khisanth | jsoftw: that is an invalid argument when using PHP as an example |
| f00li5h | WHY!? WHY DO IT? |
| Jmax- | array() // nice syntax? |
| revdiablo | jsoftw: You need discipline to write good PHP just as well as you do to write good Perl |
| action | dondelelcaro still has yet to see good php, actually |
| dondelelcaro | still has yet to see good php, actually |
| Cbro | Khisanth: I have gone ahead and pasted what I am doing |
| f00li5h | array_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. |
| dazjorz | hmm-home: clear or unset? |
| LeoNerd | If you want the 17th picture in the 12th album, you will fetch /photos/album12/photo17.jpg |
| Jmax- | hmm-home: undef |
| hmm-home | dazjorz: unset |
| LeoNerd | How I implement that internally is my business |
| Jmax- | hmm-home: perldoc -f undef |
| LeoNerd | Which 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. |
| LeoNerd | To 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. |
| LeoNerd | In 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? |
| LeoNerd | I think I can start off by declaring "This is an order-specific operation" After all... plain REs can't do that, can they? |
| rindolf | Hi Ani-_ |