r/learnpython • • 15m 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??

1 Upvotes

7 comments sorted by

•

u/unnecessaryCamelCase 9m ago

What? Python is perfectly fine for backend. What do they mean by “stop Python and go for backend” lol.

•

u/Almostasleeprightnow 12m ago

What would be the thing you would do otherwise?

•

u/socal_nerdtastic 11m ago edited 8m 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.

•

u/xonxoff 10m 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.

•

u/AneeqaGenAI 10m 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.

•

u/JaguarMammoth6231 8m 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).

•

u/DaRandomStoner 0m 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.