07-06-2009, 05:09 AM
|
#1 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,042
Thanks: 193
|
Worst programming language
I was surfing StackOverflow.com, and I happen to come across this question someone had answered:
http://stackoverflow.com/questions/9...ed-with-closed
What would be the worst programming language, well I happen to see the first entry would be PHP with 143 "ups"
Quote:
* Inconsistent function names and argument orders
o Because there are a zillion functions, each one of which seems to use a different naming convention and argument order. "Lets see... is it foo_bar or foobar or fooBar... and is it needle, haystack or haystack, needle?" The PHP string functions are a perfect example of this. Half of them use str_foo and the other half use strfoo.
* Non-standard date format characters
o Take j for example
+ In UNIX (which, by the way, is what everyone else uses as a guide for date string formats) %j returns the day of the year with leading zeros.
+ In PHP's date function j returns the day of the month without leading zeros.
* Still No Support for Apache 2.0 MPM
o It's not recommended.
o Why isn't this supported? "When you make the underlying framework more complex by not having completely separate execution threads, completely separate memory segments and a strong sandbox for each request to play in, feet of clay are introduced into PHP's system." Link So... it's not supported 'cause it makes things harder? 'Cause only the things that are easy are worth doing right? (To be fair, as Emil H pointed out, this is generally attributed to bad 3rd-party libs not being thread-safe, whereas the core of PHP is.)
* No native Unicode support
o Native Unicode support is slated for PHP6
o I'm sure glad that we haven't lived in a global environment where we might have need to speak to people in other languages for the past, oh 18 years. Oh wait. (To be fair, the fact that everything doesn't use Unicode in this day and age really annoys me. My point is I shouldn't have to do any extra work to make Unicode happen. This isn't only a PHP problem.)
|
In the past, I've read many complaints about PHP, stating it had no Namespace ( which is in 5.3.0 now... ) support for one matter, and the most is the first question which I've grown use to, and I can remember a ton of the functions right off the back, just because of this so called inconsistency, as for arguments, well needle and haystack argument names seem to only reside in the string library.
As for the second question, I have not used Unix so I have no idea
For the third question, what is Apache 2.0 MPM?
And the last he answers it himself...
So what's the deal with all the hate of PHP? Or is this just a matter of trolling, which in this case, related topics aren't trolling...
__________________
VillageIdiot can have my babbies ;d
|
|
|
|