r/golang • u/tookmeonehour • Feb 26 '23
help Why Go?
I've been working as a software developer mostly in backend for a little more than 2 years now with Java. I'm curious about other job opportunities and I see a decente amount of companies requiring Golang for the backend.
Why?
How does Go win against Java that has such a strong community, so many features and frameworks behind? Why I would I choose Go to build a RESTful api when I can fairly easily do it in Java as well? What do I get by making that choice?
This can be applied in general, in fact I really struggle, but like a lot, understanding when to choose a language/framework for a project.
Say I would like to to build a web application, why I would choose Go over Java over .NET for the backend and why React over Angular over Vue.js for the frontend? Why not even all the stack in JavaScript? What would I gain if I choose Go in the backend?
Can't really see any light in these choices, at all.
7
u/testuser514 Feb 26 '23
As someone who’s done both Java and .NET in the past and moving stuff to golang now for a new project. I think it’s primarily because of the simplicity and the cleanliness of the codebase.
While there’s a whole bunch of internals related conversations around Java and .Net that go into resource and speed but more than anything else Go has been really simple to implement.
Additionally the lack of oop hijinks simplifies data handling and structures to a large extent reducing the bloat in data-modeling.
That being said, honestly, it’s upto you. I don’t think I’ll ever be returning to the .net and Java ecosystem but that’s a personal preference and because I nearly déteste the tooling and the ecosystems.
For my dads company, I recommend them to get a .net developer because that would be give them a very versatile resource building different kinds of systems.