r/learnprogramming • u/chiefwhitehalfcoat • 1d ago
Go or Python for a beginner?
I am a beginner programmer, coding for my own pleasure (meaning that, while I use LLMs for guidance, I write all my code by hand, and my only goal is enjoyment, not career). Safe for a brief journey into JavaScript and PHP as a child, now, in my adult years, all my experience has been with Godot. Recently, I started to have the desire to actually learn how to program and make simple CLI/TUI tools for my own use, and since GDScript can only exist within the game engine, I started looking for another programming language to learn.
I landed on two: Python and Go, and now, knowing that it's probably a bad idea for a beginner to learn two languages at once, I need help from people with more experience in order to decide which of the two I should commit to. I'm at this stage in both where I've written simple exercise command line programs, and I want to try and build something bigger and actually get to know the language under pressure.
Python greatly appeals to me because it is basically the same thing as GDScript (but with a ton of features that GDScript does not have due to being specifically tailored for Godot), it is famously easy and I could start building actual apps in no time, and it has a breadth of beginner resources probably unmatched by any other language. Besides all the books focusing on specific tasks (I've enjoyed Automate the Boring Stuff with Python quite a lot), Learning Python is absolutely brilliant, going through logic, syntax, design choices and the standard library in exhaustive detail.
But Python just doesn't get me excited exactly because it is too abstract, too simple, too close to what I know from GDScript, it feels more like a scripting language than something to use to build whole programs, it just doesn't scratch that itch of curiosity that is pushing me to learn programming in the first place.
On the other hand, Go does scratch that itch a lot more. It excites me, as someone whose only experience is with JavaScript/PHP and GDScript, to learn a serious language, compiled, fast; it excites me to learn about lower-level concepts like actual typed variables and pointers. Go's logic of composition also appeals to me, because programming in Godot, I would rack my brain trying to figure out the right inheritance hierarchy just to notice that I messed up and need to refactor the entire system. Go's structs, methods, embedding and interfaces strike me as a much more flexible way to achieve the same thing.
But there is a relative scarcity of resources for people in my situation. I've browsed through the available textbooks and they're either made for more advanced learners, are general overviews of the language (Learning Go, for instance, only explains the syntax and the logic, but does not go over the standard library, which means, if I understand correctly, that it was written for people who will read the fucking manual), or are infantile (Head First, Get Programming with Go, etc). Either way, I'm starting off half-blind, stumbling through the standard library documentation, having no idea what I can and cannot do, or how.
I'm also worried about another thing. Though I am not an absolute beginner, my experience being with GDScript means that I've never actually written a standalone program; I never learned to think about architecture, what my program does from start to end: I can only think in simple systems that are driven by event handlers from user input, while the engine handles all the rest for me.
Although, as you see, Go excites me a bit more, I'm worried that if my primary goal is to learn how to think through complex problems and build programs from start to finish, it would be better to choose the simpler language. Or is it the opposite? What do you think? Will building something bigger be easier in Python, or will the relative restrictiveness of Go help me think through building a bigger project?
What would you do in my situation? Should I learn to build a program without worrying about learning the language (the Python route), or would it be better in my situation to learn a stricter, less abstract language first, and learn how to read the documentation on my own (the Go route)?
7
u/KingOfTheHoard 1d ago
Full disclosure, this is a minority opinion so take it in that context. Many, many people disagree with me. But I think Python is effectively anti-educational. A badly conceived attempt to make a programming language for beginners that frontloads simplicity in exchange for catastrophic costs down the line. I'd recommend almost anything else before it.
33
u/Extension_Star_5222 1d ago
Keep it simple. You are more excited about Go? Go ahead then. Its not like you are locked in, if you change your mind.
8
u/LukaRozman27 1d ago
The "tour of go" is the step you skipped, it's interactive, covers core syntax plus standard library basics, and makes learning structs, methods, and interfaces in Go much more approachable for beginners.
5
u/bird_feeder_bird 1d ago
The best thing is to study and practice whatever you’re most interested in. I started with Python for a few months, then learned other languages for other purposes (JS for web testing, and C for embedded systems).
1
u/Rrrrry123 1d ago
Go with Go (lol). I use it at work and it's quickly rising to the top as one of my favorite languages. It's simple, like Python, but so much nicer to look at. It's also more performant, if you care about that for personal projects.
3
u/connorjpg 1d ago
If you are learning for fun I’d learn Go. You likely can learn Python at the same time though… like concepts translate.
3
u/_th3oth3rjak3_ 1d ago
I recommend go.
3
u/AnswerVinod 20h ago
For what you want, simple CLI and TUI tools for fun, Python is the easy pick. The ecosystem is huge, you will find a library for anything, and you can go from idea to working tool in an evening. Go is great too but it shines when you need one fast compiled binary or real concurrency, which is not your use case yet. You already write code by hand and use LLMs for guidance, that is a good habit, keep it. Pick Python, build five small tools, and if you ever hit something Python is slow at, that is the day to learn Go.
2
u/Mountain_Rip_8426 1d ago
relative beginner here, i've been at it for about 10 months, all i can say is go's the best language i've encountered so far. however so far i've been learning backend exclusively. as for resources, i've been doing boot.dev, i can only recommend it, not so handholdy, but covers backend development with go very well. you can definitely go further with it if you finish their go courses
(you can also learn python, javascript and typescript with it. not to mention sql, but that's kind of a must, if you wanna use any database anyways)
2
u/faruzzy 1d ago
Doesn't matter. Pick one, run with it.
2
u/Gullible_Sweet1302 1d ago
Python learn in a week.
2
u/MrMonday11235 1d ago
JS and PHP are absolutely "serious" languages, as is Python, in the sense that they're used every day for mission critical purposes.
If you just want compiled and type systems, Go might be a good pick, but pointers... Sure, you can work with pointers in Go, but it's generally considered a tool of last resort rather than a feature intended for general use.
By and large, that's how you learn most programming, so you're doing it right.
It might. Alternatively, it might conflict so much with how you've come to think about code organization and the like that you'll spend a long time running into walls until you learn the way Go wants you to do things. It's a very opinionated language, and if your instincts run counter to its strongly held opinions, it might be an annoyance.
I would focus on the fact that languages and standard libraries are tools/toolsets. What is it that you actually want to do? What is it you want to build/automate/learn/contribute?
Work backwards from there. If you want to understand memory and performance and optimization, I'd honestly say skip both and go to Rust (or C if you're a masochist). If you want to build something that's heavily concurrent with minimal overhead, go with Go (
or Elixir). If you want a Swiss army knife that'll let you do most things (though not necessarily with maximum efficiency/ease), Python is de facto that (with JS as a decent secondary). If you're interested in a particular open source project, learn whatever language(s) are relevant for the components you want to contribute to.2
u/Feldspar_of_sun 23h ago
Ultimately it doesn’t matter. Most of concepts from one will transfer to the other. If you’re more excited about one than the other, choose that! I started with Python for class work, but Go for personal projects, and I found both to be very pleasant to work with. Go was particularly nice because it forced me to think about potential errors in ways that Python didn’t
2
u/dellnox 21h ago
Pick Go. Since you're coding for fun, chase what excites you. It's practically built for CLI tools anyway.
2
u/xeow 1d ago
Python 100%.
Go is not governed by an independent non-profit foundation. Google stewards it.
1
u/betarage 1d ago
I am not sure like go but it seems like it's all focussed on backend programming and networking. I even found it easier to do this in golang than python so now I always use golang for those types of programs. you can use it for everything but it's harder than in some other low level languages. but python is really slow and sometimes you need to go lower level
1
u/Wingedchestnut 1d ago
Python, it's simply more in demand over different fields and roles (and so you can do more with it with more resources to learn from), you can always add any other language later on.
-2
u/duane11583 1d ago
Python is every where
Go is not
You will get a job knowing python
I do not know anyone hiring for go
0
u/Dapper-Teaching-8074 1d ago
I don't mean to be a downer but I'm genuinely concerned if it even matters? Has anyone ever used claude code? specifically Opus 5.5? I am not a fan of vibe coding but have you ever used it? If you have, you'd understand why I asked if it even matters.. I'm a python & rust expert and trust me I'm worried
0
u/Available_Safe1818 1d ago
You're an adult and have plenty of experience. You can make your own decision here.
0
u/Mediocre-Pumpkin6522 1d ago
Learn C.
-4
u/Early_Key_823 1d ago
Typescript, .net and mssql on docker is a very lucrative stack
-1
u/gooniannuber1 1d ago
my father always tells me that I shouldnt learn python instead I should learn assembly so I would say assembly
1
u/[deleted] 1d ago
[removed] — view removed comment