4 ms·
the bad: >Ugly syntax The syntax is not that importent (the semantics are the BIG problem) but you are right. What to expect from somebody that didn't even wa
by nickik 16y ago
the bad:
>Ugly syntax
The syntax is not that importent (the semantics are the BIG problem) but you are right. What to expect from somebody that didn't even want to read a hole parser book (not blaming him i think there boring too but if you don't want to read a parser book implment a lisp)
>Lack of some necessary features that other languages have (prior to 5.3, namespacing, closures)
Having a feature in the language is good but not worth a lot if there not idiomatic to use.
>Inconsistent function naming, usage, and other quirks
Inconsistency is te big word. Everywhere. Nobody thought about what is done how, where or why.
>The fact that 80-90% of PHP projects are probably gigantic piles of shit
yeah.
The "good":
> Standards (not universal, but generally a flavor of MVC for most projects, and little procedural crap)
1. Application Design is more then just MVC.
2. Most PHP Code produced still suckes. Sure there are frameworks and standards know but how many % of the people writing php know this? I know lots of people how get tough php just like 10 years ago and if they are not really into programming (like people here) the will never learn the good stuff.
Having "Standards" and people using them is a diffrence.
>A very low barrier to entry
True. Php was just at the right place at the right time.
> Speed & Scalability (maybe the best among script-based languages)
From most benchmarks I have seen php was really slow. Isnt it compiling to bytecode witch then gets inerpreted?
There are projects like HipHop and phc but I havn't seen really good numbers for them.
Are there good up-to-date benchmarks to support this?
> A great unit testing framework
What language that could has somewhat the same scope as php does not have really good testing frameworks?
> Arguably the best documentation for any language
Read some compents in this thread to see peoples opinions on that.
- Mikushi 16y agoHe is right in saying that PHP is fast. In recent benchmark that we did at my company, mostly between PHP and .NET, i was able to make PHP match .NET speed with little effort, using my own framework. I have quite a lot of experience using PHP under heavy load, and i know for a fact that Ruby or Python are no match to it, and .net is barely better if not equal. As a PHP developer, mainly (i also enjoy Python and C), i am aware of a lot of the problems that PHP has, but in the hand of a developer that really understand the language (attend a couple of conference from Rasmus and you'll get an idea on how to develop PHP properly, and that doesn't mean not using frameworks), PHP is really powerful and unmatchable in terms of easiness to use, scalability and speed.