Home  >  Article  >  Backend Development  >  Why more and more people think Golang is undesirable

Why more and more people think Golang is undesirable

PHPz
PHPzOriginal
2023-04-03 14:09:317036browse

In recent years, with the continuous updating and iteration of programming languages, Golang was once considered a language with great development potential. However, recently, more and more people have begun to think that Golang is not advisable. So, what happened that caused people in the programming industry to have a negative opinion of Golang?

  1. Lack of generality

One of the main problems with Golang is its lack of generality. Compared with other programming languages, Golang is a relatively limited language and is mainly used in fields such as network programming, distributed systems and cloud computing. This is different from the versatility pursued by most high-level programming languages ​​on the market.

Requirements for troubleshooting, algorithm development, or other tasks cannot be met by Golang’s command set. Therefore, Golang does not seem to be the best choice for some developers involved in deep learning, speech recognition, image processing and other fields.

  1. The relative learning curve is too high

It is also relatively difficult to learn Golang. Although many developers based on high-level programming languages ​​​​such as C, Java or Python already have a certain programming foundation, in the process of learning Golang, you need to understand some special syntax and structures and understand how they work. At the same time, Golang is different from other languages ​​in that its ecological environment and tool chain are also significantly different.

In contrast, many developers who switch to Golang from other programming languages ​​may find it difficult and need to adjust to the new programming paradigm.

  1. Structure and Complexity

Golang’s initial design positioning was to take into account performance bottlenecks such as multi-threading, network communication and distributed systems. Therefore, it is built in a way that puts more emphasis on memory allocation and usage efficiency. However, this emphasis has had an impact on the complexity of program development and maintenance.

In Golang's design, a program is broken down into multiple files and modules, and the programmer must combine each part into a whole. To sum up, projects using Golang can become very complex. If you need to solve a bug or add a new feature, it will take programmers longer, which will increase more costs.

  1. Lack of ecological area

When Golang was created, the original intention of development was to optimize a large-scale concurrent environment. Due to the limitations of the language, developers have been working hard to find new ways to build more complex libraries and projects, but this is not the case in the ecosystem.

In short, although Golang is still very powerful and reliable in some areas, more and more people think that Golang is not advisable due to its poor versatility and high learning curve. At the same time, it is not difficult to find that many large projects and companies use more flexible and scalable programming languages, unless Golang is absolutely necessary.

The above is the detailed content of Why more and more people think Golang is undesirable. 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