From: David Garamond Date: 2004-06-22T01:06:21+09:00 Subject: Re: rubys web performance Thomas Fini Hansen wrote: > And while we're talking about lines.. I had to fix the code in > SquirrelMail that encodes the headers when there's non-ASCII > characters in it. Thought that it would be easy as I'd done my own in > Ruby for another project and it was just 7 lines of code. Imagine my > surprise when I found out that it was 118 lines of PHP code. About 10 > was 'extra' code for stuff related to SquirrelMail. > > I couldn't resist, first I tried rewriting the function to exec > Ruby. Slow as hell, but only 19 lines. Then I ported my Ruby function > as well as I could and it ended up at 32 lines. So even if we subtract > the 10 lines, it's still the difference between 7 and 22 lines. I know the feeling :-) Sometimes I curse while coding in PHP. Though it does the job, PHP is really an ugly, half-baked, non-designed language. Even Perl looks beautiful when I'm stuck with PHP. Plus they break things (and change defaults!) between releases. IMO PHP is really an undependable tool for large projects. -- dave