Last Updated: April 26, 2019
·
333
· msalimbupatirembang

Various advantages and disadvantages of programming languages Golang By M Salim Bupati Rembang

Go, also known as Golang, is a programming language released by Google in 2009 with the aim of increasing programming productivity.

From year to year, Golang is increasingly used by various companies because it is considered to have various advantages. One of them includes significantly increasing performance.

Before choosing a programming language, you must first determine what type of site or software you want to design. Then, understand the advantages and disadvantages of each type of programming language so that its use fits your needs.

Advantages of Golang
There are a number of advantages that make this programming language interesting in the eyes of many companies, especially startups. Here are some of them.

  1. Easy to learn
    Compared to its competitors, Golang's syntax style is smaller so it is easier to learn. You also don't need to use a lot of time to find terms that are difficult to understand. This convenience can even be felt by programmers who use different syntax styles.

  2. Faster
    Golang is compiled into machine code so that it can go beyond other programming languages ​​that work with virtual runtime. The programs inside also work fast, with APIs that can compile in seconds. This makes Golang a faster programming language.

  3. Have a garbage collector
    The memory management system in Golang is easier than other programming languages ​​that use the C and C ++ syntax styles. That way, dynamically allocated objects can be collected in a garbage collector.

  4. Have concurrency
    Concurrency is the ability of the program to be divided into smaller parts that can function on their own. There aren't many programming languages ​​that have concurrency, but Golang even dares to have this ability with a model that is easier to use.

  5. Improve the shortcomings of existing programming languages
    Golang is equipped with a number of advanced functions so that it can solve problems in other programming languages, such as:

lack of parallel computing support
lack of multicore support
poor management of dependency
complicated type system
complicated memory management

Deficiency of Golang
Like other programming languages, Golang also has a number of disadvantages. Here are some of them.

  1. Interface is too implicit
    An interface is a shared boundary when two or more components in a computer exchange information. Golang is indeed equipped with an interface, but its implicit nature can make it difficult for users to distinguish struct contents (composite data). You can only find out once the program has been compiled.

  2. Inadequate library support
    Golang is equipped with a standard library that provides various code information. However, the integration of the API against the source of information in the form of Contentful turned out to be not supported by the Go provider so you have to write the necessary code yourself and manage it properly.

  3. Cannot use the same function for different data collections
    Unlike Java, the use of code in Golang cannot be done repeatedly. Although the functions they have are fairly sophisticated, codes that can be used in one type of data collection apparently cannot be used for another group of data.

Programming languages ​​consist of various components with various functions. If there is an advantage in one function, then you might find deficiencies in other functions.

You can make the points above as a basic reference for using Golang. The advantages and disadvantages are that Golang is more suitable if you work with bytes, but it is less ideal for those who work using data.