With the development of the Internet, technology is constantly updated and changing with each passing day. There are many back-end development languages, such as php, java, c#, pyhon, golang, and a hundred flowers bloom and a hundred schools of thought contend.
PHP or Java
1. How difficult is it to get started (recommended learning: PHP Programming From entry to proficiency)
php is easy to learn and understand. Non-technical people can get started with a little study. The environment is built using LAMP/WAMP one-click installation package, and the common development tool is phpstorm.
Java requires an understanding of Java syntax and core architecture (jar package) and JVM. Environment configuration is also more troublesome. Commonly used development tools are eclipse or Intellj Idea;
2. Advantages and Disadvantages Comparison
Advantages of Java: In terms of mathematical operations, database access, and technical architecture, it is better than PHP. Therefore, for large-scale cross-platform enterprise application systems, Java has almost become the only choice. Alibaba It is the full line of Java series, and its level is also at the forefront of the world;
Disadvantages of Java: Behind the powerful Java architecture and performance, or the price, is complexity, especially in the web framework, using Java to develop a web customer service system. It may take 9 months and 9 books to read, while PHP may only take 2 months and 3 books;
Advantages of PHP: PHP absorbs the advantages of Java, C and Perl, focusing on the Internet web field , very suitable for rapid development and maintenance of small and medium-sized websites;
Disadvantages of php: In the later stage of the php project, with the development of the business, the requirements for the database are high, and the support and architecture of php are weaker than Java, and There are fewer PHP programmers, and the ecology of Java programmers is not as strong as that of Java programmers.
Applicable stage
Initial stage of entrepreneurship: php, backend
Middle term: php, c, cto backend
Later stage: java, c, cto architect backend
Why is there an extra c?
In fact, in the early stage of the entrepreneurial project, it was a small project (back-end database). As the business developed, the requirements for the database became higher, and later on, there were requirements for the architecture, so a large system may be composed of It consists of multiple subsystems. The subsystems can be developed in different languages. As long as they follow the protocol (soap/websevice/restful), they can be parallelized and form an architecture. Therefore, a DBA will be needed in the mid-term, and an architect will be needed in the later stage.
Java-Big Brother for Many Years
At the beginning of 2000, Java was elected as the big brother due to its excellent language features. The Big Brother has been on the throne for 23 years. During this period, PHP, Ruby, etc. tried to challenge its position, but it was rock solid.
The above is the detailed content of Should startups use Java or PHP?. For more information, please follow other related articles on the PHP Chinese website!