Hi everyone! I'm a fourth-year computer science student and I'm considering making the switch from JavaScript to Golang. I'm looking for any advice or insights you might have on this decision. Is it a good idea to focus on Golang, or should I continue with JavaScript as well?
5 Answers
There’s a notable difference in error handling between the two languages. In Go, you’ll often have to return both a value and an error, which might feel a bit odd, especially coming from JS. It can seem repetitive, like checking for 'if err != nil' all the time. While some find it bothersome, many agree that it can be preferable to JavaScript's 'try/catch' method. Overall, the transition isn't too tough; both languages can actually complement each other well!
Absolutely, do it! Learning Go has been a rewarding experience for me and could be for you too.
I say go for it! I've really enjoyed using both JavaScript (and TypeScript) along with Go. I've switched a lot of my API services from JS to Go, and I have zero regrets. Just remember, switching doesn't mean you need to abandon JavaScript entirely; think of it as adding Golang to your toolkit instead!
If you have the basics down, try these resources:
1) Go Tour: a web-based platform that’s easy to use without any installation.
2) Check out this GitHub repo for structured learning and exercises. It's a great way to build practical skills in Golang!
I don't have experience in Go yet, but I recommend staying consistent in your learning. Even just spending 30 minutes each day can lead to great progress.

That's a good point! It definitely takes some getting used to, but thinking of it as just another way to handle errors helps.