r/learnpython • • 1d 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??

9 Upvotes

39 comments sorted by

40

u/JaguarMammoth6231 1d 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).

4

u/AddAcrobatic6275 1d ago

Yeah first one. Guess I'm getting ahead of myself worrying about Go already šŸ˜‚. I'll stick with Python and see how far I get. Thanks

7

u/xplosm 1d ago

This is a very sane and healthy outlook. One of the most invaluable skills for a software developer is to get acquainted with new languages pretty fast but that won't happen unless you know how to talk to machines.

Remember that each language has its own idioms. Trying to program Go like you'd do it in Python will make you want to change careers and the end result won't be as maintainable or as performant as an idiomatic way. But you will fight an uphill battle if you don't have your basic skills polished.

So don't try to run before you can march like an expert.

7

u/socal_nerdtastic 1d ago edited 1d 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.

1

u/AddAcrobatic6275 1d ago

Yeah that's what I was thinking too. Better to get comfortable with Python first rather than jump ship after every bit of advice. Can always learn go later if needed. Thanks that helps!

3

u/Almostasleeprightnow 1d ago

What would be the thing you would do otherwise?

1

u/AddAcrobatic6275 1d ago

Probably just keep learning Python and building small projects. I guess I'm worried about wasting time on the wrong language.

7

u/Select-Access-4083 1d ago

your friend who writes go telling you to learn go is the least surprising thing ive read all week

10

u/xonxoff 1d 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.

3

u/james_d_rustles 1d 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.

3

u/pythonQu 1d ago

switch to what?

-1

u/TheRNGuy 1d ago

Re-read OP.Ā 

3

u/PuzzleheadedTax7404 18h 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

8

u/unnecessaryCamelCase 1d ago

What? Python is perfectly fine for backend. What do they mean by ā€œstop Python and go for backendā€ lol.

6

u/PressF1ToContinue 1d ago

The language called ā€œgoā€.

-4

u/ninhaomah 1d ago

this got 5 upvotes ??

1

u/unnecessaryCamelCase 1d ago

What do you mean?

1

u/unnecessaryCamelCase 1d ago

Nvm got it now

1

u/ninhaomah 1d ago

and I got downvoted for ?

whoever downvoted me , pls give me reasons

Here is why I asked why upvoted

The OP asked "a friend keeps telling me to switch to go for backend"

The question asked was "stop Python and go for backend"

Sorry but how is it a valid question ?

If the question is what is go ? Yes. Nothing wrong with not knowing what is go but I would have said google it.

but "to switch to go" is not "go for backend"

There.

4

u/PressF1ToContinue 1d ago

Well that's 15 seconds I'll never get back.

2

u/Mountain_Rip_8426 1d 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/BlackBurnedTbone 1d 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.

1

u/TheRNGuy 1d 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 22h 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 22h 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 18h 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 17h ago

go? i feel like learning python is better since we have Fastapi which is quite fast

1

u/Pyromancer777 1d 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/supercoach 1d 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.

1

u/TipIll3652 1d 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 1d 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 1d 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 1d ago

Switch to claude for everything.

-1

u/nicodeemus7 1d 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/SamuliK96 1d ago

The friend is telling op to switch to the Go language.

2

u/nicodeemus7 1d ago

Ah, okay "switch to Go, for backend". I was reading "switch, to go for backend".

-2

u/DaRandomStoner 1d 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.