Why i like Go
So if you don’t know i like Go the programming language made by google. It’s Fast, reliable and perfectly fits my use case which is building on the backend side and middleware’s and most importantly – general scripts that require any form of API interaction.
I also made a blog post about the KinCony Smart Controller with 16 relay channels, and guess what, it supports MQTT, HTTP so i think Go is the best language for that
Back to point
So naturally in software programming you are gonna come across these things called tests which honestly are a pain in the butt as they are just as big as the actual file they are testing if not bigger. And that is why you need to learn how to use tests especially in backend.
and for Go, there are alot of good resources for learning Go like:
- boot.dev
- learnGoByExample
- go.dev
but by far the most i liked was learnGoWithTests and as the name suggests, it teaches you how to write tests too
i am not joking when i say i had to write a unit test for Hello, World too. like here it is
But most importantly, it eliminates the fear from tests atleast for me.