three cons of PHP?
Posted: Thu Jun 05, 2003 2:07 pm
I tried to get a comparasion between PHP and JSP from a professor who taught both of them.
He told me that the Pro for PHP is that it is "tuned" for web programming so it is always easy to use and quick to find what you need.
However, he mentioned the following three cons for PHP also.
1. PHP is not object oriented.
However, I do find a chapter named "classes and objects" in PHP manual. Is PHP beginning to be object oriented? Even though I know the concept of OOP is popular, my coding never benefited from it. What is the opposite term for "OOP"?
In my understanding, in OOP, other people write some general classes, then you can import and use it through the provided interface, but you will not and do not need to see the source code. In the none-OOP world, if you want to use another class/function/method, you need to add/include the source code into your own code and modity to suit your need. Am I right?
2. PHP is intepreted, not compiled, therefore, slower than C, Java.
What does "intepreted" exactly mean? For each request, the code is coverted from php language to machine language?
3. PHP is not scalable to enterprice level as Java does.
Why this is the case?
I really love PHP and want to see evidence that it is strong.
Please comment.
Jie Huang
He told me that the Pro for PHP is that it is "tuned" for web programming so it is always easy to use and quick to find what you need.
However, he mentioned the following three cons for PHP also.
1. PHP is not object oriented.
However, I do find a chapter named "classes and objects" in PHP manual. Is PHP beginning to be object oriented? Even though I know the concept of OOP is popular, my coding never benefited from it. What is the opposite term for "OOP"?
In my understanding, in OOP, other people write some general classes, then you can import and use it through the provided interface, but you will not and do not need to see the source code. In the none-OOP world, if you want to use another class/function/method, you need to add/include the source code into your own code and modity to suit your need. Am I right?
2. PHP is intepreted, not compiled, therefore, slower than C, Java.
What does "intepreted" exactly mean? For each request, the code is coverted from php language to machine language?
3. PHP is not scalable to enterprice level as Java does.
Why this is the case?
I really love PHP and want to see evidence that it is strong.
Please comment.
Jie Huang