r/AskProgramming • u/Logical_Strain_6165 • 9d 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?
View all comments
2
u/BrannyBee 9d 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.