Web Background language selection?

Source: Internet
Author: User
Tags what php
There are many background languages. In terms of selection, I would like to ask for advice on PHPvs. Node. js. Node is on the rise. Just as in the past, few people have been involved in the programmer profession, so they have to knock on code. There are many background languages. In terms of selection, PHP vs. Node. js has some suggestions. Node is on the rise. Just as in the past, few people have been involved in the programmer profession, so they have to knock on code. Reply: In terms of evolution, JavaScript is faster than PHP, ES6 is not popular yet, ES7 has started, and syntax has changed too much. If you don't write it for three days, you won't be able to keep up with it, and Node will be faster, one version a day, Express is more extreme, find a code sample last year can not run, a lot of changes.
PHP can't talk about language design, it doesn't have aesthetic feelings, it's too much to write, and it's even a bit of a spam. But PHP is a utility, it can survive, it can survive quickly, Node. js does not talk about whether js callback can be adapted (Promise), exception capturing in callback, and so on. However, javascript is not designed for the web, and there are a lot of things lacking in web writing, for example, if sprintf does not exist, strftime does not exist, or strtotime does not, parseInt (new Date () is required for obtaining the timestamp ()). getTime ()/1000), template Parsing is not available, of course, these can depend on third-party packages, the result is to write a small thing, everywhere is require.
PHP is much simpler. Basically, you need built-in functions. In practical terms, Node is much worse. Do I want to play with myself or make a living?
Let's continue reading the answer here for fun.
If you want to find a job, go and check out the answer. It is also annoying to learn a good technology without any offer. I have been writing PHP for 7 years and Javascript for 5 years. Let me select Javascript from the beginning.

The reason is as follows:

Currently, PHP is only a WEB Background language. Javascript is already a full-stack language (WEB, desktop, mobile, embedded, and database have important applications). If the programming language is an investment, the long-term return of Javascript is higher.

PHP is still an OO language in the actual Programming environment. The multi-paradigm applications in the actual Javascript scenario can be seen everywhere (OOP, Functional, Event Driven, Declarative Programming, etc ), learning Javascript can open your mind.

What is inevitable about WEB development is full-stack development. Javascript is the only target language when you need to do frontend tasks.

The tool chain of Javascript is more flexible than PHP, with faster iteration and better community support (the core community of PHP is much smaller). What PHP can do is not found that Javascript cannot be done on V8. Of course it's Haskell. Even companies like Facebook that write PHP are starting to use Haskell to process some high-performance services.

FAQ:
I. There are not many career choices in Haskell.
A: I learned how to convert Haskell to Node. js in minutes.
2. What should I do if I want to learn?
A: First, you have to try to find out if your IQ is sufficient. Next, you can refer to other answers to this question. It is useless to look at the answer. Everyone will recommend the artifacts in his mind, but they actually have a strong subjective performance, which is unavoidable because there are no people proficient in all languages, I feel that cpp js is enough of these four languages. Small and Medium Projects. First introduced Rails.
The PHP code is ugly, and Node. js can be used for fun. This is really a headache for projects.
Only Rails can be used to write Web projects. It has the development efficiency necessary for small and medium-sized enterprises to get started quickly.
ROR is also the first choice for foreign startups. For example, twitter airbnb 500px kickstater square hulu producthunter, etc.
Various powerful gems, such as logon management Devise, Image Upload management Papaerclip, and role permission management cancan. So that the general programming language can be done in three days and five days, just a few minutes in Rails.
A desperate project with PHP and PYTHON needs to be written. It may take a month to use Rails. See the graph. On Github, JavaScript is a little more popular than Php.

Either have a community or have a father.

Java, C #, and Golang are good for users. Java supports Oracle, IBM, and other vendors, C # supports Microsoft, Golang supports Google, and is a powerful company. PHP can barely count as a father. After all, companies such as Zend, Facebook, and Sina support and use PHP. Just forget about Node. js.

In terms of communities, Java, C #, PHP, and Python are relatively good, And Golang is developing fast. I feel that PHP is still on the rise. It is estimated that there will be no problem in the first 10 years of tianchao PHP. What's more, if PHP is about to look for a job 7, let's go to PHP, don't be fooled to learn niche technologies.

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.