Why every PHP Developer should learn Golang
Being a PHP/Laravel Developer, amongst other programming languages like Ts, C#, I've been using the OOP approach to abstracting domain of projects. With Golang, the perspective is now something different from what you know. Golang is a very powerful language that is easy to learn and has only the necessary constructs required to be applications. The most obvious aspect of Go, is its approach of using composition over OOP. If you're new, your head will crack a little because there is no place where you would see that an interface is explicitly implemented unless you know how it works.
What are those benefits?
Type-safety: Golang is a type safe language by default, allowing you to catch type mismatch errors within your application in a way that make everything easy to work with.
Raw speed: Go has raw speed and a very low memory footprint, giving many reasons as to why it is highly sort for in the cloud and for high CPU intensive backend applications like in the Fintech industry. This raw speed and performance comes with cost-saving advantages when it comes to the number of servers you need to run your application.
You get close to the metal: You are able to think like the system/computer when writing Go code. You are forced to get close to C as possible although you will not be managing memory directly but you will be thinking properly of the right set of variables to use. The syntax is straight to the point without any bloat, making you just focus on your job. The standard library of Go has almost all the things you will ever need without you having to install extra packages like you do in Node via npm or with composer in PHP land.
If you love the cloud: Go is now the go-to language for the cloud. If you love the cloud, you should be learning this language because it is already backed by Google and used by many cloud providers for custom modules. For example, you are able to build custom modules in KrakenD to manage your multiple micro-services. This is only just one example of how this language is being used.