Thread: Content God 2
View Single Post
Old 01-19-2003   #18
Dravyk
Easy Like Sunday Morning
Want to see your own Advertising Here!
 
Dravyk's Avatar
 
Join Date: Oct 2002
Location: Behind a couch, somewhere in Philly
Posts: 7,628
Default

Quote:
Why did you choose Perl instead of PHP? With the server load of most big sites (or a bunch of sites feeding from the program all at once) won't Perl be slower than PHP all other things being equal?
Damnman, let me quote directly from the site FAQ:

Q. I like PHP better. Do you have a PHP version of the program instead of Perl?

A. No. There is nothing wrong with Perl. In fact, Perl is more powerful and has greater flexibility than PHP and it works on more servers than PHP does. Ah, but you say PHP has more speed. It might. Not a lot more, but a little more. Guess what? Since Content God is not serving the images, galleries and sites in real-time ... since it is creating them, and bang, they are done ... there is no need for speed in the case of gallery and site creation. Therefore what you need is power and flexibility, not a few more seconds of speed. For that reason Content God is written in Perl.

To put it another way: there are times you need a racing car, and there are times what you need is a 4by4 monster pickup truck and a tow line, and you gotta know which is which and use the right one for the right job.

Hope that helps. :-)) One more thing though. Perl can be done wrong or badly. If there's too much code it can be very slow next to PHP. If it's written tightly by a superior programmer it can be just as fast as PHP. Fortunately I have good people coding for me.


Quote:
I've had enough programmers I asked about custom projects lately tell me that it's not a hearty language for what *I* want to do that I seriously wonder what it is for...
KK, it's that "hearty enough"aspect that's the exact reason why Content God is done in Perl.

As to PHP, it has it's uses; it's especially good for real-time delivery. Let's say a real-time Rate-My-Ass site. Good for those sites that grab news from elsewhere and spit it out on a portal. Also both my links list and All Of 'Em have been upgraded to PHP. (It can in realtime rotate the links differently to every surfer and that's 14K links.) But no, IMHO, PHP is most certainly not robust; it also is not very flexible. But it has it's uses.
Dravyk is offline   Reply With Quote