GoLang: Hobbyist/Scripting to Professional?
I'm hoping you can help provide some insight.
As someone who has been working in "devops" and cloud computing for several years now I have become very used to IaC, scripting (python/bash). Most of the tools that I have become familiar with (Kubernetes, Terraform, etc.) are built upon GoLang. Furthermore GoLang seems to be an absolute beast when it comes to distributed systems/backend development in an SRE type role.
That being said I would like to endeavor to learn GoLang. As mentioned previously I have some experience (intermediate level) with Python and Bash/AWK from a systems automation perspective. I never had a software engineering mentor so everything has been self-taught. Over the years I have found I have improved in Python substantially; however I never felt like I was at that, "professional" level. Mainly around code structure, modulating code etc. Which has created a feeling of imposter syndrome when trying to contribute to open source projects.
This is something I want to avoid early on when learning GoLang (if possible). I would really like to become proficient in the language, enough so to actually contribute to some of the open source projects for the favorite tools I use. However when I look at any of the source code (even if written in Python), it seems quite daunting.
In your opinion what is the best way to learn the language efficiently, practically, and professionally? How would you go about beginning to contribute to open source projects if you have zero professional software engineering background?
TLDR: I want to learn go lang professionally, and not have it just be one-off scripts here and there. Enough that eventually be confident enough to contribute to open source projects.
Posted Dec 29, 2020, 5:42 PM UTC
Can't have all three. If you learn it efficiently, you won't have enough of the practical experience that comes from falling down rabbit holes and solving weird problems weirdly. If you learn it practically, you'll have deep but narrow knowledge that comes from insufficient exposure to problems outside your specific job domain. If you learn it professionally, you'll likely find that you're trained to solve academic CS problems that have no particular connection to your actual job, or to anyone's.
You just have to learn by doing what you want to do. If you want to learn to contribute to open-source Go projects (why?) then you have to start out doing that. Go to whatever Go library you've found is most useful to you and start trying to solve problems with it, or improve the documentation or something. If you don't understand what the code does, work with it until you do.
Nothing about how you learn a programming language is going to make you not feel like an imposter. You have to learn to contribute as an imposter - as someone who's code can't be assumed to be correct just because you wrote it. (Nobody's can, but that's besides the point.) You have to write code as though you don't trust yourself to get it right, because you don't. So write tests - tests prove that you're not just fooling yourself, your code works. Write documentation - docs prove that you're not just fooling yourself, you really do know what your code does and how to use it.