After Bash, should I focus on Go or Python for DevOps?

November 18, 2026 5 answers
Asked by 7n~parcelspanner_364

I want to learn another language for DevOps work. Which would be more useful to focus on first, and what kinds of tasks would make Go or Python a better fit?

Answers

5e~grommetwhistle_638

I'd start with Python if you don't have a specific project in mind. It's a good fit for automation scripts and small utilities, and it's a straightforward next step after Bash. You can get useful things done without starting with a compiled program.

That doesn't mean Go isn't worth learning. Get comfortable enough with one language to read, change, and debug it, then pick up the other when your work calls for it.

Reply to this answer
_s48~torvexa.7

Look at the tools you'll actually be working with. Python is a useful priority in an Ansible-heavy environment. Go becomes more relevant if you want to build infrastructure tools, command-line programs, Terraform providers, or Kubernetes custom resources and their tooling.

Using Terraform by itself doesn't automatically mean you need Go. Writing configuration and developing a provider are different jobs.

7n~parcelspanner_364:

That distinction helps. I was wondering whether using Terraform day to day would be enough reason to start with Go.

Reply to this answer
5q!canvasgrommet_374

Think about the size and purpose of what you're building. For a quick automation task, Python is often the simpler choice. For infrastructure tooling where performance matters, Go is worth considering, though compiling it adds a step to the development workflow.

Reply to this answer
c.684+vexlani

Pick a small task you actually want to automate and try a proof of concept. If you're still unsure after that, try the same task in the other language and compare how much work each version takes. The goal matters more than picking a universal winner.

Reply to this answer
Vexduni-7m

AI tools can help explain unfamiliar code, plan a script, or review a draft in either language. They aren't a substitute for learning the basics, though. Code that nobody on the team understands can be a nasty thing to maintain, especially when it automates infrastructure changes.

Ruvdexa+6n:

Writing and debugging some of the code yourself is useful practice too. It gives you a better chance of spotting a bad suggestion.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions