PHP vs Node.js In-depth discussion (1)

Source: Internet
Author: User
Tags php and php code

The network is in a rapid development era. Server-side developers are confused when it comes to choosing a language, with long dominant languages such as C, Java, and Perl, as well as languages that focus on web development, such as Ruby, Clojure, and go. As long as your project is working well, your choices seem less important.

But how do you get these new Web developers to make the right choice?

I don't want to start a war between the two camps of PHP and Nodejs, and I'll compare the developments in the two languages:

Php

Rasmus Lerdorf created PHP in 1994. It is run by a component installed on the Web server (Apache, Ngix). The PHP code can be mixed with HTML. It doesn't take much practice for beginners to quickly write valuable code. This makes PHP more and more popular, and now 80% of the world's servers are running PHP. One-fourth of the world's web sites are using a content management system –wordpress, is written in PHP.

Node.js

Ryan Dahl created Node.js in 2009. It is based on Google's V8 JavaScript interpretation engine (it is responsible for executing the client's JavaScript code in the Chrome browser). Unlike other languages, Node.js has built-in library of functions to handle network requests and responses, so you don't need a separate server (Apache, ngix) or other dependencies. Node.js, though very new, soon gained great popularity. In many large companies are in use, such as: Microsoft,yahoo,linkedin and PayPal.

Our favorite C #, Java, Ruby, Python, Perl, Erlang, C + +, go, Dart, Scala, Haskell, and so on, what about them?

If the article is compared to all the various parameters of the language, the article will be very long, you will still read it? Do you expect a programmer to understand all of the program development languages? This is clearly not possible. I mainly compared PHP and Node.js, the main reasons are as follows:

    1. First, they are worth comparing. Both are open source, both dedicated to web development and can be used for similar projects.

    2. PHP has been published for a long time, but Node.js is just emerging and getting more and more attention. are PHP programmers supposed to believe in node.js propaganda? Should you consider translating languages?

    3. I know, love programming languages, since the 1990s I have been using PHP and JavaScript, and also have a few years of node.js experience. I also dabble in other techniques, but I can't make an objective assessment of them here.

In addition, it is not important to say how many languages, because there will always be certain places where some people complain that I did not mention their language.

SitePoint on the race

Programmers spend a lot of time promoting their own programming skills. Some people have the ability to extend between programming languages, but those who reach higher levels make their own choices based on a number of factors. Subjectively, you will be pushing and defending your technical decisions.

SitePoint Smackdowns did not take the view that "choose your own friend". I will make recommendations based on personal experience, requirements and preferences. You may not agree with all the points I have said, it doesn't matter, it's important that your opinion will make a wiser choice for others.



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.