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

23
crashfrog•

In your opinion what is the best way to learn the language efficiently, practically, and professionally?

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.

Which has created a feeling of imposter syndrome when trying to contribute to open source projects.

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.

2
twr14152•

So I was pretty proficient at Python in my day, but its relative to those I'm surrounded by and the space I was working in at the time. I read and tested everything. I have more books on python than I know what to do with. Eventually I got a job with it focused on network automation. I didnt have a mentor either it was trial and error in my home and work lab. Repitition and testing built confidence. I think thats the key. Do you know the space you're in so you can work towards and end result? I knew networking and I knew what I wanted the code to do. If you want to contribute to something would you pick an area your familiar with? Something you already understand. That is if your looking to build your confidence. Otherwise your spreading your wings and thats a different endevour. Both have their place. However one of them will be dealing with two unknowns. What your supposed to do and how to do it in a language you dont understand. Understanding what you want to happen before you code it allows you to be the critic. Otherwise other people fill those shoes and thats uncomfortable and will lead to shorter endevours in those spaces. My advice to start is build something your self. I hear it all the time. It true you'll learn from the failure with out the embarassment. I was doing network automation in python. Decided to switch to Go cause I got bored. Eventually I was able to do everything in Go that I did in python and I enjoyed it even more because in Go there's less charted territory. So your pionerring stuff as you go. More satisfying experience. I will say this Go does not read like python. Its not written like sudo code. To build and maintain confidence you need to use it. I will also say that I am one of the few people who didnt like The Go Programming Language book.. I thought the example were too rooted in math and algorithms for my understanding. I took the tour a couple of times. Read a couple of books none of which I felt were spectacular. I recommend the tour, as much as you can tolerate, the website documentation (know how to look stuff up), gobyexample for reference, use the Internet. Build something you can be confident in. It will start there. For what its worth after I did that in Go my curiousity went further and I started down the C and then c++ track. All of which helped me further my understanding of Go. Its a never ending process, and your never going to be the expert in the language. Dont try to be, be an expert in your space, on your project. Oh and for what its worth when I was working in the network space some of the code I started writing was go code for automation. Jobs in this space start with people that arent experts trying things out once their familiar enough with the tech. If I would have stayed I'm pretty sure Go would have been a job requirement. I was not an expert in the language but I knew my space to use the tool effectively. Just try and find your space with the tool. Once you have some confidence pick something you know you could add value to. My 2cents. Good luck.

2
1dkv•

I’m also in the similar journey.

1