Paul Krill
Editor at Large

Biggest Golang challenges are error handling and learning, Go developers say

news
May 16, 20232 mins

Go Developer Survey finds that error handling and learning best practices are the biggest challenges to using Go, now that generics has been added to the language.

green light in madrid go proceed traffic
Credit: ÁWá

The lack of generics used to be the biggest challenge to using Go, according to the annual Go Developer Survey. Now that Go has generics, the biggest challenges Go developers report are error handling and learning best practices, according to the most recent edition of the survey.

The January 2023 edition of the Go Developer Survey asked 5,844 Go developers to share how they are using Go, their biggest challenges using Go, and their top priorities for future improvements of the language. The results were published May 11.

Error handling, particularly the readability and verbosity of errors in Go, and the difficulty of learning best practices for Go programming were the most commonly reported challenges. Historically, the lack of generics registered as the biggest challenge among the Go developers surveyed. But generics, which simplify coding by allowing developers to write functions that are independent of the types used, officially arrived with Go 1.18 in March 2022. Since this introduction, comments about generics have declined.

In other survey findings, open source Go module maintainers reported challenges in keeping dependencies up-to-date and avoiding disruptions due to versioning and breaking changes. Plans call for exploring this area further to assist maintainers with providing a stable, healthy ecosystem. The survey also found that novice Go developers are interested in using Go for web development.

In other findings of the January 2023 Go Developer Survey:

  • An optimization guide was the most-valued way to boost Go performance. When asked how they would spend resources on improvements to Go’s compiler and runtime, respondents favored an optimization guide rather than specific performance improvements, demonstrating the value of documentation in this area.
  • 92% of respondents were satisfied with Go while 4% were dissatisfied and 4% were neither satisfied nor dissatisfied.
  • About a third of respondents maintain an open source Go module.
  • 30% of respondents have used Go for two to four years, while 19% have used the language for five to seven years and 8% have used it more than eight years.
  • Microsoft’s Visual Studio Code was the most-preferred code editor for Go. Linux and macOS were nearly neck and neck as the most-preferred development platforms.
  • Development of API/RPC services was the most-prominent use of Go, followed by runnable/interactive programs, libraries or frameworks, and automation/scripts.
Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author