I'm an undergraduate trying to decide between Python and Golang for a career in DevOps. I want to understand which language is better suited for this field. Can anyone share insights or experiences to help me make an informed choice?
5 Answers
Choosing between Python and Golang really depends on the specific use case and the tools you'll be automating. Both languages have their strengths, so think about what you're working on.
Honestly, it shouldn't matter too much. The key is mastering the fundamentals of software development. Different companies might favor different languages, so focus on the core concepts first.
In general, you'll find a stack used in DevOps includes Bash, Python, and sometimes Golang or Groovy for CI tools. If you're mostly working with AWS, Python might be more common, while Golang is often seen in GCP environments. I usually start with Bash; if it gets complex, I lean towards Python, and for performance-critical tasks, I use Golang.
You’ll likely need both languages unless your role is super specialized. Python is widely used, and while Golang has its niche, learning Python first can give you a strong foundation. You can always pick up Golang later when you need it for specific tasks.
It really depends on your DevOps role. If you're just getting started, focus on Bash and Python. But if you find yourself needing to build CLI tools, Golang could be the way to go since it's excellent for performance in that context.

Totally agree! It's all about the context. Python is a great intro language, and you'll definitely need both along the way.