2 ms·
I constantly hear this over and over, what's funny is that some of the hottest websites out there are built with php.
by eam 17y ago
I constantly hear this over and over, what's funny is that some of the hottest websites out there are built with php.
- potatolicious 17y agoI've been writing PHP for years, and have mixed feelings about it personally. You're right that some of the largest websites are built primarily on PHP (Facebook comes to mind) and it works remarkably well. For one thing, PHP is fast. It blows Ruby out of the water and (for the time being) leaves Python in the dust. It also doesn't run into the infamous scalability issues that plagued Rails for some time (and in some ways continues to). I rather like the syntax of the language - it's Perl but a bit more structured, and less ambiguous, which is pretty cool to have. Put two and two together, and in the right hands PHP is a formidable tool that ought not be underestimated (though frequently is thanks to flavor-of-the-day coders). What it is guilty of, though, is an unmitigated clusterfuck of a standard library... if it can even be really called a standard library. There's no concept of namespaces (none that is used anyway), and no consistency with API naming nor design. Accessing the various core functions within PHP is really just arcane tribal knowledge that you acquire from Google - there's no systematic elegance to anything. Remove the gigantic tomes of documentation surrounding PHP and the language is utterly incapable of standing on its own. Oh, and it still can't parse XML worth a damn.