Home >Common Problem >What is used to develop the app backend?
There is one core principle in choosing a development language: choose the most popular language under the right business scenario.
( 1) Each language has its own business scenarios that it is good at. Choose according to the business scenario (recommended learning: PHP video tutorial)
For example, if you need to develop a chat server, I chose php for development, which was really exciting. How is a scripting language like php suitable for chat services?
For example, if you are developing a web website, php is very suitable. Compared with java, the efficiency is much improved.
(2) Choose the most popular language
The business scenarios applicable to many languages overlap, so how should you choose in this case?
My answer is, choose the most popular.
In terms of app back-end development languages, java, php, python, ruby, golang, nodejs, etc. are all available, so which one should we choose?
Let’s estimate how many development groups there are for the five categories of java, php, python, ruby, and go? Is it easy to recruit people?
Is the open source community active? Are there a large number of third-party libraries to avoid reinventing the wheel yourself?
(3) A big taboo is to use two different languages to maintain the same business logic
Once, an entrepreneur consulted me. My project has two parts: app and website. He wants to use Java to develop the app backend and PHP to develop the website backend. The two parts have a lot of the same business logic.
I immediately explained: This situation is a case of reinventing the wheel. Will using two languages to maintain the same business logic improve development efficiency?
If you want to modify the business logic, the implementation of the two languages needs to be modified. Doesn't this waste a lot of development time?
(4) In a system, different business logic can be implemented in different development languages
For example, the MVC framework part of the back-end system can be used php, and if you need to implement a scheduled task system on the back end, you can consider using java or python. Both languages have mature scheduled task implementation solutions.
More PHP related For technical articles, please visit the PHP Graphic Tutorial column to learn!
The above is the detailed content of What is used to develop the app backend?. For more information, please follow other related articles on the PHP Chinese website!