A different kind of thinking about PHP VS node. js

Source: Internet
Author: User

PHP and JavaScript are very popular programming languages, just started a service on the service side, a service to the front-end, they have long been able to live in harmony, until one day, A JavaScript called node. js after the birth of the environment, coupled with the PHP swoole extension of the birth, once let the two languages become the object of comparative discussion, a variety of comparative information about them in posts, forums, communication groups abound, some people say php good, Some people say that node. js is good, don't worry, this article is not a comparison of the two, but a different way of thinking about the relationship between them.

So-called flaws are clouds.

Clouds

node. js from the previous version of 0.10.x to the present 7.5.0, PHP from 1.0 to now 7.x, both versions of the update are very fast, and from each update of the log, have solved a lot of bugs, optimized a lot of performance and a lot of new features, and so on, this shows that Many of the defects will be in the current version or future version as a task target to be overcome, so to some extent, so-called defects are clouds.

What is the meaning of their existence?

Value

For the advent of Javascript,ajax, let us all know that the server is just passing data over it, the rest of the parsing data, rendering data and processing data are done by JavaScript, which is done by the server, in other words, JavaScript has been able to share part of the service side until the advent of node. js of the chrome-based V8 JavaScript engine, and let us see that the original JavaScript can also run on the server.

From the above description is not difficult to find, The meaning of node. js exists on the one hand is to add vitality to the development of JavaScript, on the other hand is to engage JavaScript people to a more professional direction-the back-end direction, can let them better understand the back end of some business logic, so as to improve their programming ideas, even let them can proudly say, I can develop anything The

For PHP, we all know that there are other ASP. NET, JSP, Python and so on, after the comparison of learning, it is not difficult to find that PHP is the simplest kind of entry, which is also reflected in its development efficiency of the fact that it is not comparable to several other languages, so it's existence meaning, is to minimize the time, that is, in the shortest possible time to complete the functional requirements we need.

Provides an optional decision-making solution

Decision

PHP can do things, node. JS can, and vice versa, so choose them very simple, if the company front-end, choose node. js, if the company backend more, choose PHP, of course, this is only a personal point of view ha:).

This article is from the Nail Claw Advertising Alliance (0http://www.jiazhua.com) Original Feed! Original article reproduced please specify!

A different kind of thinking about PHP VS node. js

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.