Did PHP get astray on the Ruby on Rails?

Source: Internet
Author: User
Keywords Php rails ruby cakephp java
Tags php framework zend framework ruby on rails
A long time ago to say that this problem, in the knowledge of endure for a while, read a lot of the words of the great God, finally can not help to bring it up ...
Background as we all know, not much to say, start is Ruby on Rails challenge PHP, now almost all kinds of Big point PHP framework are kept imitate ruby on rails ... The most powerful is cakephp.
However, many big-frame large-scale gods have seemingly forgotten the nature of PHP simple to use, PHP is not Java, some things are packaged too badly, it feels self-defeating!
(Word limit, not to be continued!) )

Reply content:

The PHP development team lacks a leader who has an idea like DHH. Starting with 5, it seems that the PHP core team is upset that PHP is not suitable for enterprise development. Easy-to-use, novice-friendly features are also gradually discarded. The popular PHP framework does not have its own design ideas, either to learn spring, or Django, more to learn rails, after all, PHP does not appear to be a good framework.

Say PHP is astray with rails. I don't quite agree that rails is good because of some of the design ideas DHH put forward, such as dry, such as conventions that take precedence over configuration. There are also a number of best practices. The PHP framework should be learning about his thoughts, not the superficial stuff. It should be said that developers are astray by the multifarious frameworks, rails is a stimulus to PHP,
There are also half of the original cakephp developers feel that cakephp is not very compatible with PHP, so re-opened a lithium PHP framework,
Compared to zend,symfony these (personally think Zend have too heavy Java flavor, as to Symfony function name is obj-c flavor, cakephp is not rails flavor, yii is not the. NET taste is not clear) "large" framework, Li3 very good frame with the language of the same thing, too evil without framework bai (word limit, the problem)
Take the official Zend Framework, I feel it more like a code generator, a lot of stuff. When using the Zend Framework, I didn't feel like writing a Web site but feeling that I was writing a software in Java or C #. It doesn't feel like PHP at all. More than Zend Framework,symfony. Just as Android does a layer on Linux itself, these frameworks seem to want to build a layer of PHP on their own. PHP is a very advanced language, and these frameworks have the meaning of turning it into the underlying language.
So I prefer to use something more lightweight, such as thinkphp, CodeIgniter, etc.
-------------------
I admit PHP is not very suitable for large projects, large projects you use Java Ah! Why reluctantly PHP? I heard that Twitter is not also considering abandoning Ruby on rails and using Java instead ...
Want to listen to everyone's language ... It could be scary.

Before college, I played PHP and started working with Java, then starting with rails. Play all of their own languages. Have played so many languages, I think it is a more comprehensive analysis:

Welcome to shoot Bricks.

    1. Rigor. Hard to write code without bugs, PHP itself is a hack language, a variety of patches to expand their own way.
    2. Ecological circle. The PHP community's investment or accumulation is in the web this piece. PHP is well suited for the development of rapidly changing web products. The advantage of > (@Allen) is that it generates pages. But in the fields of business, mathematics, security and so on, the accumulation of PHP is not enough to support its application in the enterprise domain. The PHP development team lacks a leader who has an idea like DHH. Rails various web best practices (pjax,scss,coffee) off PHP several streets
    3. Application scenario PHP is more front-end, on the back end, the desktop side, the mobile side basically no market.
    4. Interoperability with other platform systems (Web service). The old system of enterprise interacts with WebService, java,.net have mature solution.
    5. Version evolution. PHP6 again again delayed release.
    6. The gene at which the language is created. > (PHP--the acronym for Hypertext Preprocessor) (thanks to the @ picture bug), obviously for the sake of the Web page, of course, this history is very long, but from the history can see the original intention of some language design, and these will become the language of the gene, with the development of language has been inherited down
    7. Maintenance costs
      Because there are too many hack, too many global functions, magic variables, a variety of non-uniform, maintenance costs are very high

The characteristics of the PHP language itself is not enough to support a framework to express the idea, resulting in a variety of frameworks flying, quality is uneven.

> (borrowing @ Wang Xiaoyi) Take the official Zend Framework, I feel it more like a code generator, a lot of stuff. When using the Zend Framework, I didn't feel like writing a Web site but feeling that I was writing a software in Java or C #. It doesn't feel like PHP at all. More than Zend Framework,symfony. Just as Android does a layer on Linux itself, these frameworks seem to want to build a layer of PHP on their own. PHP is a very advanced language, and these frameworks have the meaning of turning it into the underlying language.


As for the advantages of PHP is the mature web products, a variety of CMS, or very valuable, such as WordPress.

It's really handy to use frames for writing.
I don't like frames. PHP is easy to use, I'm afraid it was a long term. For a novice PHP, it is difficult to write a reliable application without a framework.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.