r/AskProgramming • u/Logical_Strain_6165 • 19h ago
Learning Python in an age of AI?
I am doing a degree apprenticeship in Cybersecurity over the next four years, and I’m lucky that my employer is paying me to do this, despite not “needing” it for my role.
One module in the first year is Python and, I won’t lie, I’m struggling. Initially, I enjoyed the learning, though it doesn’t come naturally to me. Despite spending lots of evenings and weekends on it, I’ve struggled to learn fast enough to keep up. I’ve got two big projects due in after Xmas, and I’m feeling a bit demoralised.
I think part of it is that I can see how easily AI blasts through this stuff. In a way, I’m quite excited about this. I enjoy using Claude to make my own small projects, and AI-assisted PowerShell scripting at work has been a real force multiplier. But nobody is ever going to pay me to sit there and write code. I can, however, see myself increasingly using it to make tools for my team's workflows.
When I finish this module, I’m going to have lots of other work to balance alongside my day job and home life, and I know I’ll forget a lot of this. It can leave me wondering what the point is.
Anyway, this isn't meant to be a downer. I’d like to take the positives from this experience. What would you say are the most important things to take away from learning programming that are still important and/or useful in an age of AI?
3
u/CS_70 19h ago •
If you want to learn phyton, use the AI as a tutor on the language, not to write phyton for you.
It's no longer necessarily useful as such, but learning a programming language or a dozen is stil mightly instructive.
2
u/GottaGetThemGains22 19h ago
Within Claude there is a built in command that may be helpful for your learning goals!
You can do ‘/output-style’ and there is an Explanatory option (for… explaining) and a cool Learning option that will write some of the code but leave chunks for you to do by hand to learn.
Thought I’d throw it out there since I’ve used the damn thing since last year and only found this one a few weeks ago.
Wishing you the best!
5
u/danb1551 19h ago edited 18h ago
I'm learning assembly. It's not to know how to program, it's about understanding better the system
1
u/bobsmissingdesire 19h ago
If you want to learn how to program then you need to put in the hours.
There's no shortcut, it's hard, you make mistakes, you run into walls, you get frustrated, you figure it out and then hit the next wall. I do think it's doubly hard doing this when you have an AI happy to give you the answer, and while you are learning it is better than you are.
If goal is to get the assignment done feed it into AI, but don't pretend you've learnt anything.
I have grave concerns for the future of our industry, I really think that AI has made the initial learning curve much harder.
3
u/dajoli 19h ago
All of it.
We don't pay people to add the numbers in an accounting ledger manually either, but we still teach kids how to add.
The point of making you do this yourself is to make you engage with the fundamentals. How can anyone expect to properly engage with complex AI-generated code if thry can't even do an introductory programming task themselves?
3
u/Low-Tackle1868 19h ago
How do you feel about trying to code by hand using pen and paper?
2
u/Familiar9709 19h ago
you still need to know the language, I don't believe in fully vibe coding when you cannot even read the code. Sure, remembering how to pivot a table in pandas may become obsolete, but you still need to know the basics or not so basics.
Also knowing in general how to structure code and what is good code vs AI shite is very useful
2
u/BrannyBee 18h ago
How long did it take to learn to read and write english/[your native language] confidently? Were you discouraged as a kindergarten student because it didn't come natural to you, even though it seemed really easy for everyone else?
Coding is super easy and not at all the hardest part of the field, because of all the reps that you do every day and how much practice you get, even when you're writing something super complicated as a senior you are using the same basic building blocks. Same as spoken language, you've got basic stuff like nouns/verbs, variables and functions, you can combine those basic things in a million ways, but certain patterns appear over and over and over again, and after you spend years on the basics you never stop practicing them.
With all that in mind, I would ask you, do you think you would be better or worse at reading novels today if as a kid you were allowed to use speech to text instead of hours and hours of writing by hand in school?
It has nothing to do with AI being quick or even if AI magically tomorrow became better than every engineer on the planet at writing code and handwritten code disappeared entirely tomorrow. Because even in that extreme case, being able to read the code and understand it is paramount. Funnily enough, its the same as its been for a very long time, when working with new developers it would be very common to remind them that "code is read 1000x more times than it is written".
AI is a force multiplier. And requires being able to guide it and understand its output, and the tricky part is that the better it gets, the MORE difficult it becomes to fix an issue when it does break because the easy and medium level problems were premptively taken care of. Thats not necessarily always a great thing for you... because if you are using AI for something you couldnt do yourself, even if it takes a long time or dont understand the output completely, you arent being an average 1x developer and using a tool to become exponentially more efficient... you're a 0.5x developer and raising that number exponentially is gonna cause a lot of headaches for you when you end up trying to prompt you way out of a mess that anyone with experience would never have gotten in to
I would caution against just skipping learning the easiest part of CS just because AI seems to you that it can do it better. Even if we pretend thats true in every scenario, the end result of that is that you have MORE code you need to read and understand, not less. And staring at code day in and day out isnt going to improve your ability to read code nearly as quickly as just writing thousands and thousands of lines of code. We don't just give kids The Lord of the Rings novels and tell them to figure out how to read, we make them soend years writing out the alphabet and writing simple sentences, and even when they can write in english, we still make them keep writing, then eventually they can read, but we still make them write essays and practice writing after that. Writing essays isnt the most important skill in the world, but theres a reason we do it.
You as a novice have determined that writing code manually isnt worth your time. I'm not gonna debate or even challenge that opinion, just the fact that inference alone isnt profitable for companies providing AI tools should be enough to at least affirm that at least having a solid foundation is important no matter what happens with the tech in the future, doing that makes you better in a world where AI takes over and a world where all the AI disappears tomorrow.
What I would posit, however, is that if you truly believe that is true that coding by hand isn't worth doing, then you would have more reason to write code while in this learning environment not less. Now is the time to learn and build a foundation, so it would seem that doing whatever you can to become more capable of reading the code AI gives you when you are done with your program would be the most logical course of action given what you seem to believe. If the AI can code, and you're not using this time in training doing boring repetitive stuff that makes you better at reading code like writing a million lines of the stuff and building simple little programs that drive you crazy trying to make work without looking up the answers... then why are you doing the training?
It might seem like all thats super negative and anti-AI, but its literally the opposite, I'm saying it seems like you're losing the opportunity to stop using AI so that you get more from the AI in the future. Paradoxically, your use of AI is making the output you're capable of getting out of AI in the future less effective.
2
u/StructuredChess 19h ago •
If you don't know how to write code yourself, then the only use you'll ever be able to make of AI is begging it to please fix the code, without being able to provide it with any meaningful lead towards where the problem could be.
AI has made programming more powerful, not less.
1
u/fugogugo 19h ago
most AI tools written in python it's not bad idea to learn it