in reply to Perl vs. PHP

Mandatory link: http://tnx.nl/php.

1) Ever seen a c one? 2) PHP'ers prefer to copy and paste. 3) easter_date(). 'nuff said. 4) often, thank $god. 5) Perl's easy enough to learn, but PHP is easy-er. I wonder why Ruby isn't more popular: very easy AND very powerful. 6) See above link. It depends on which features you need. Select your function carefully.

Replies are listed 'Best First'.
Re^2: Perl vs. PHP
by jdalbec (Deacon) on Aug 14, 2004 at 14:36 UTC
    1) Ever seen a c one?
    The International Obfuscated C Code Contest has a few. The most recent "best one-liner" is schweikh.c:
    main(int c,char**v){return!m(v[1],v[2]);}m(char*s,char*t){return*t-42? +*s?63==*t|*s==*t&&m(s+1,t+1):!*t:m(s,t+1)||*s&&m(s+1,t);}