Re: I couldn't understand why PHP is so popular. The PHP code looks so horrible compared with Java.
- From: "Rik Wasmus" <luiheidsgoeroe@xxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 09:53:52 +0200
On Tue, 29 Apr 2008 08:00:47 +0200, tenxian <hi.steven.tu@xxxxxxxxx> wrote:
Could you put up with the horrible PHP code?
No offcourse not, that's why we read this group.
For comparison, here's some Perl:
#!/usr/bin/perl -l
s--@{[(gE^Ge)=~/[^g^e]/g]}[g^e]x((!!+~~g^e^g^e)<<pop).!gE-ge,
s-[^ge^ge]-s,,,,s,@{[(g^';').(e^'?')]},(G^'/').(E^'|')^Ge,ge,
print,s,(?<=/[^g^e])[^g^e][^g^e],$&^(G^'/').(E^'|')^gE,ge-ge
--
Rik Wasmus
.
- Follow-Ups:
- References:
- Prev by Date: Re: I couldn't understand why PHP is so popular. The PHP code looks so horrible compared with Java.
- Next by Date: Re: I couldn't understand why PHP is so popular. The PHP code looks so horrible compared with Java.
- Previous by thread: Re: I couldn't understand why PHP is so popular. The PHP code looks so horrible compared with Java.
- Next by thread: Re: I couldn't understand why PHP is so popular. The PHP code looks so horrible compared with Java.
- Index(es):