r/learnpython • u/AddAcrobatic6275 • 2d ago
6 weeks into learning python and a friend keeps telling me to switch to go for backend
6 weeks in, about an hour most nights. function, loops, dicts, just started classes. i want to end up doing backend work and was about to pay for a structured python course but a friend who writes go at work keeps saying python is a detour and i should switch now before i get too deep. i don't want to restart every time someone has an opinion but i also don't want to burn months on the wrong things. so do i stay or switch??
8
Upvotes
44
u/JaguarMammoth6231 2d ago
This is your first programming language? In that case it doesn't matter too much. The main skill you are learning now is how to think like a programmer, how to break down problems into simpler problems. The specific language you use doesn't matter too much yet (within reason).
7
u/socal_nerdtastic 2d ago edited 2d ago
What kind of backend work do you want to do? Assuming you mean webservers, a lot of them are written in python, including reddit. Python and Javaccript are the most common. But if you have a specific application in mind that needs go, then yes I'd agree with your friend. Go ahead and learn the language you need.
More generally, the concepts you learn in python will transfer to any other programming language. functions, loops, dicts, classes etc exist in (almost) all other programming languages too, you just need to learn a different syntax. So the time you spend in python now is not wasted.
3
u/Almostasleeprightnow 2d ago
What would be the thing you would do otherwise?
7
u/Select-Access-4083 2d ago
your friend who writes go telling you to learn go is the least surprising thing ive read all week
10
u/xonxoff 2d ago
Stay and learn Go later once you get python down. They are both useful to know. Itās not an all or nothing situation.
4
u/PuzzleheadedTax7404 1d ago
the language war stuff is mostly noise at 6 weeks. build 1 small thing in python now and port teaches you more than restarting would. if you want structure, boot.dev and nucamp both run python backend paths, the 1st self paced and 2nd with weekly classes
3
u/james_d_rustles 2d ago
If you already know some general programming and you have a specific need or desire to learn Go, then sure, have at it. If Python is your first language, donāt listen to the million and one āx language is better than y languageā opinions and just keep learning. Learn the fundamentals in whichever language you like and then branch out once you feel you have a stable footing.
8
u/unnecessaryCamelCase 2d ago
What? Python is perfectly fine for backend. What do they mean by āstop Python and go for backendā lol.
2
u/Mountain_Rip_8426 2d ago
about 11 months ago i was in your shoes (minus the friend telling me what to do). i probably would have given up, if i started with Go. stick with python, it's perfect for understanding fundamental concepts and you get to keep focusing on the logic without much friction. it really helps you develop a sense of a programmatic mindset.
about 4 months in the curriculum i was doing switched to Go. awesome language, but really, only after getting the basics down in python and getting my hands dirty with a bit of C and memory management. now i'm at the point where i'm writing my first very own program in Go, but still to this day, i do some codewars/leetcode problems in python, and if i need a few quick scripts for my job i just write it in python, because it's faster.
2
u/supercoach 2d ago •
You're friend sounds like a junior dev who probably should be ignored. What you're learning at the moment is the most popular language in the world and one that is far more popular than Go for back-end work.
If your friend had more experience he'd know to tell you that learning to program in general is more important than learning a specific language. Since you've already started with it, keep going with python and once you're properly capable with python, you can try picking up Go if you like because then you'll know how to program and the language you use will be less important.
Raw performance is something you would only really need to worry about if you're writing advanced software such as servers handling millions of connections per second. Of course if that's what you're doing, you're probably not using golang either.
Anyway, long story short - don't worry about what you're friend is saying. Right now you're just learning to program and python is as good of a choice as any. You can specialise later if you feel like it.
2
u/BlackBurnedTbone 2d ago
Whenever I talked with a buddy about the difficulty in async he always starts talking about Go and channels(or something).
I don't talk to him about async anymore.
2
u/pythonQu 2d ago
switch to what?
1
u/TheRNGuy 2d ago
Depends on frameworks or tasks you want to build. Some better on Python, some better on Go.
He could also teach you, if you switch.
1
u/dariusbiggs 2d ago
Python is a great language to learn, useful in many things.
But it is never a question of "which language to learn", it is always a question of "which language to learn first".
Get comfortable with your first language, understand the basics, then expand into another language like Go once you understand what it brings to the table for you and your future development.
We use Python, Go, and Typescript for our various backend systems in our new product. Some are just stronger for their specific use cases.
1
u/SirKainey 2d ago
Eh once you master python, switching to go isn't too bad.
I would focus on one first, and python is a great first language.
1
u/DEE_PIZZLE 1d ago
6 weeks is right when the concepts start stacking, and most of what you're learning now (functions, data structures, reading errors, breaking a problem down) carries straight into Go. Switching now mostly means relearning syntax for things you already get. Plenty of backend paths do it in that order on purpose, Boot.dev's Python and Go track starts in Python and only moves to go once the fundamentals are there.
1
u/Educational_Virus672 1d ago
go? i feel like learning python is better since we have Fastapi which is quite fast
1
u/BjornToulouse_ 14h ago
Yes, Python is a detour. Unless your employer has a bunch of legacy code that needs maintained, or you need to write quick and simple programs ad hoc all the time. In that case, python is the gold mine.
1
u/Pyromancer777 2d ago
You have a choice since you are still early in. Either stick to Python since you have 6 weeks of familiarity, or restart with Go since it might have more industry utility.
What you shouldn't do is swap languages every time the market shifts job requirements. Learning one language deeply is much more valuable than learning 5+ languages at a surface-level. Someone with 6yrs of Python is still going to be the better programmer for a role that requires Go than someone who studied Go for 2-3yrs. The roles are based on problem-solving and adaptability, not based on who knows a company's entire tech stack
1
u/TipIll3652 2d ago
The cool thing about programming languages is that once you know one, you can fairly easily pick up another one.
Stick with python, learn the concepts and understand what's happening. After you know python, then pick a different language to learn. You'll find you're really just learning syntax at that point with the occasional language specific shenanigans.
0
u/AneeqaGenAI 2d ago
Assalam-o-Alaikum! I'd stick with Python for now. Six weeks is still early, and Python is absolutely capable of handling backend work. Don't switch languages just because your friend prefers Go. Focus on learning programming fundamentals, then build a few backend projects with FastAPI or Django. You can always learn Go later if your work requires it. The important thing is to stop restarting and start building.
0
u/AlexMTBDude 2d ago
If you goal is to have your skills as marketable as possible just check this list which tells you which programming languages are currently the most used ones in the industry : https://www.tiobe.com/tiobe-index/
-1
u/ketsa3 2d ago
Switch to claude for everything.
-1
u/nicodeemus7 2d ago
Is he telling you to switch without suggesting what to switch to? If so, he doesnt know what he's talking about and you can safely ignore him.
-2
u/DaRandomStoner 2d ago
Go is all around better. Python is imo the best way to learn how to code but it's not always viable in production due to how slow it is.
Honestly though learning how to code and set things up more broadly is the important skill to build and python is perfect for that. Thanks to AI we don't need to know all the details for any particular language. I can port a python script to rust or go without much trouble by using AI. Or describe what I want the code to do and have it build it directly into whatever language I want. I never learned to write in either of those languages directly but the skills I learned from doing it in python apply more broadly across the other languages.
Learning the principles of coding with python then learning when to use what language to achieve optimal results would be my recommendation.