search
HomeBackend DevelopmentPHP TutorialFrom PHP to Go or Front-end? The suggestions and confusions of reality from experienced people

From PHP to Go or Front-end? The suggestions and confusions of reality from experienced people

The career development difficulties and choices of PHP engineers

Current situation and troubles

Recently I found that colleagues in other positions in the company (such as Android and Embedded C) generally paid more than PHP and front-end engineers, even if they were onboarding later. After communicating with the leader, the response was that "PHP salary is indeed low." This made me reflect on my career development. Our PHP team undertakes most of the company's business, has a large workload, and often works overtime. It is not only responsible for back-end development, but also manages servers, and even takes into account some front-end and mini-program development. However, salary is not proportional to workload.

Go: The temptation and potential risks of high salary

A colleague who changed his career in Go suggested that I also learn Go, and said that the salary and benefits of Go are better than PHP. Although I tried to learn Go before, I gave up because of the grammar differences and the fewer Go positions at the time and turned to Swoole. Now that the demand for Go language market has increased, the salary level has also increased. With the successful cases of my colleagues, I have begun to seriously consider turning to Go. However, I was still hesitant. On the one hand, I was reluctant to give up the existing PHP technology stack, and on the other hand, I was also worried about the maturity of the Go language ecosystem. In addition, the situation of Go language engineers in the company also made me feel confused.

Front-end: Low motivation and high learning costs

The willingness to switch to the front end is not strong. First of all, the front-end salary is not much different from PHP; secondly, I personally feel that from the back-end to the front-end has been "downgraded" in the technology stack. I have three years of front-end experience and am familiar with Vue.js (as well as HTML, CSS and JS), but I just stay at the level of using the Element UI to build pages and not deeply learn front-end frameworks and technologies. If I switch to the front-end, I need to put in more energy to learn in depth to be competent for higher-level front-end development.

Suggestions from people who have experienced it: choose carefully and do what you can

I personally recommend that you choose to move to other backend languages ​​rather than frontend. Because the learning cost of the front-end is very high, and your years of back-end experience can effectively reduce the learning cost of turning to other back-end languages.

It is recommended that you first investigate the demand trends of local enterprises for back-end languages, such as Java, and choose a language with a large market demand and good development prospects for learning and transformation.

The current situation and future of PHP

It is undeniable that PHP is not a pure backend language. Although it was very popular in the early days (around 2014), PHP's market position declined after the prevalence of front-end and back-end separation architectures. This is related to PHP's original design goal (Personal Home Page), which focuses more on simplifying web development.

The above is the detailed content of From PHP to Go or Front-end? The suggestions and confusions of reality from experienced people. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How does PHP identify a user's session?How does PHP identify a user's session?May 01, 2025 am 12:23 AM

PHPidentifiesauser'ssessionusingsessioncookiesandsessionIDs.1)Whensession_start()iscalled,PHPgeneratesauniquesessionIDstoredinacookienamedPHPSESSIDontheuser'sbrowser.2)ThisIDallowsPHPtoretrievesessiondatafromtheserver.

What are some best practices for securing PHP sessions?What are some best practices for securing PHP sessions?May 01, 2025 am 12:22 AM

The security of PHP sessions can be achieved through the following measures: 1. Use session_regenerate_id() to regenerate the session ID when the user logs in or is an important operation. 2. Encrypt the transmission session ID through the HTTPS protocol. 3. Use session_save_path() to specify the secure directory to store session data and set permissions correctly.

Where are PHP session files stored by default?Where are PHP session files stored by default?May 01, 2025 am 12:15 AM

PHPsessionfilesarestoredinthedirectoryspecifiedbysession.save_path,typically/tmponUnix-likesystemsorC:\Windows\TemponWindows.Tocustomizethis:1)Usesession_save_path()tosetacustomdirectory,ensuringit'swritable;2)Verifythecustomdirectoryexistsandiswrita

How do you retrieve data from a PHP session?How do you retrieve data from a PHP session?May 01, 2025 am 12:11 AM

ToretrievedatafromaPHPsession,startthesessionwithsession_start()andaccessvariablesinthe$_SESSIONarray.Forexample:1)Startthesession:session_start().2)Retrievedata:$username=$_SESSION['username'];echo"Welcome,".$username;.Sessionsareserver-si

How can you use sessions to implement a shopping cart?How can you use sessions to implement a shopping cart?May 01, 2025 am 12:10 AM

The steps to build an efficient shopping cart system using sessions include: 1) Understand the definition and function of the session. The session is a server-side storage mechanism used to maintain user status across requests; 2) Implement basic session management, such as adding products to the shopping cart; 3) Expand to advanced usage, supporting product quantity management and deletion; 4) Optimize performance and security, by persisting session data and using secure session identifiers.

How do you create and use an interface in PHP?How do you create and use an interface in PHP?Apr 30, 2025 pm 03:40 PM

The article explains how to create, implement, and use interfaces in PHP, focusing on their benefits for code organization and maintainability.

What is the difference between crypt() and password_hash()?What is the difference between crypt() and password_hash()?Apr 30, 2025 pm 03:39 PM

The article discusses the differences between crypt() and password_hash() in PHP for password hashing, focusing on their implementation, security, and suitability for modern web applications.

How can you prevent Cross-Site Scripting (XSS) in PHP?How can you prevent Cross-Site Scripting (XSS) in PHP?Apr 30, 2025 pm 03:38 PM

Article discusses preventing Cross-Site Scripting (XSS) in PHP through input validation, output encoding, and using tools like OWASP ESAPI and HTML Purifier.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)