X-Warp question: Why Choose Ruby or Python-over PHP for web development?

Source: Internet
Author: User
Tags hhvm
Yesterday the whole day of the environment, want to learn under Django or Sinatra.

As a result, I asked myself why I was doing it. PHP is not very good?

Framework to develop efficiency, I will laravel ah.

Some people say Laravel code is very messy, engaged for a long time, Leng did not understand it that facade is what back matter ... In the library to see the whole year of the Java EE, I think Laravel is very familiar with. So, I abandoned more than 20 years of history of MVC, with the help of namespace to get a package, various services, validators, REPOSITORIES,EVENTS,ETC,. All separate, registered serviceprovider, Inject an instance through the IOC and engage in PHPUnit. Look at your own code, feel good and sense of accomplishment. This is the high polymer low coupling! Is the operation is more troublesome, to create a lot of files, it seems that this is not efficient ...

Also, laravel this thing itself is a package. For example, I use my own front-end to replace the WordPress front-end, is only using his router and database.

Frame to performance, I can make phalcon. That's no use.

Package management, with composer. Thanks to this unofficial group of Fig, the PSR Standard is out! I think composer is a milestone in PHP. There is only one problem, domestic speed ...

PHP itself is very slow!! Before there are HHVM, HIPPYVM, the official and a phpng. Oh, 5.5 also brought a opcache.

Need non-blocking? reactphp

......

Why startup, especially abroad, would choose Python or Ruby as a development language? I personally think that is because PHP is too popular, programmers are mixed. The name of PHP is not standardized, but I think it is not a big problem.

What's your idea?

I wrestling, if give me a reason to abandon PHP, and Python or Ruby for a living, that is, PHP programmer pay Low ...

The open question, the reliable will give praise.

Reply content:

Yesterday the whole day of the environment, want to learn under Django or Sinatra.

As a result, I asked myself why I was doing it. PHP is not very good?

Framework to develop efficiency, I will laravel ah.

Some people say Laravel code is very messy, engaged for a long time, Leng did not understand it that facade is what back matter ... In the library to see the whole year of the Java EE, I think Laravel is very familiar with. So, I abandoned more than 20 years of history of MVC, with the help of namespace to get a package, various services, validators, REPOSITORIES,EVENTS,ETC,. All separate, registered serviceprovider, Inject an instance through the IOC and engage in PHPUnit. Look at your own code, feel good and sense of accomplishment. This is the high polymer low coupling! Is the operation is more troublesome, to create a lot of files, it seems that this is not efficient ...

Also, laravel this thing itself is a package. For example, I use my own front-end to replace the WordPress front-end, is only using his router and database.

Frame to performance, I can make phalcon. That's no use.

Package management, with composer. Thanks to this unofficial group of Fig, the PSR Standard is out! I think composer is a milestone in PHP. There is only one problem, domestic speed ...

PHP itself is very slow!! Before there are HHVM, HIPPYVM, the official and a phpng. Oh, 5.5 also brought a opcache.

Need non-blocking? reactphp

......

Why startup, especially abroad, would choose Python or Ruby as a development language? I personally think that is because PHP is too popular, programmers are mixed. The name of PHP is not standardized, but I think it is not a big problem.

What's your idea?

I wrestling, if give me a reason to abandon PHP, and Python or Ruby for a living, that is, PHP programmer pay Low ...

The open question, the reliable will give praise.

Startups need to quickly make available products, and ROR have an absolute advantage over speed.

That's all.

If you choose this point in time, personally, Ruby and Python are not a good choice. It's not as good as PHP, or Go/nodejs. By the way, the PHP programmers we auction can pay a little bit less ...

If you're on the web, go ahead with PHP. Never think PHP performance is a problem, not even later.

Wrote for two months laravel, found very powerful ... Getting started is relatively high. It's still nice to get up.

It's true that PHP has good code, but rails encourages people to write good code, not PHP. The name of the yellow film is not called White.

First of all:
Anyone who has more than 3 years of web development can easily replace PHP with the following: Python,ruby,go,node ...
Secondly:
If you learn other languages, you will find that the language of PHP is very confusing, not only the surface of the function call, and the internal mechanism does not have an obvious object model, can not give a person: "I just understand the object model of the language, any code can understand", this feeling of confidence, yes, I'm talking about JS or Ruby's object model ...
At last:
Writing PHP really does not want to write good code, and Ror's dry principle is the most basic reminder, there is always better than nothing, let alone write unit test

Like Python does not like Ruby, learned a long time Python 3, later learned a little frame, webpy,django,tornado are getting started, and then later found that many companies in the domestic use of Python 2.x, But I want to write 2.x code, so later decided to learn Nodejs ...

  • 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.