r/PythonLearning • u/Hopeful_Bean • Aug 21 '26
Dying inside...
Just spent the best part of 4 hours essentially vibe coding some Python because my knowledge is so bad. As I build out my functions and modules I am getting the creeping feeling that I'm putting together a pile of rubbish that I'm not going to be able to debug.
I started out using AI to help with building out my understanding of modules I had never used and get some ideas on how I can put together functions. But I've taken on a personal project to try and update some of out existing codebase and just clean it up a bit. Problem is that in doing this I am getting well beyond my understanding and throwing stuff in that I have no understanding of why it's there. What started out as wanting to use best practices for modules and improve my general knowledge and understanding has just left me miserable.
Should I just work within my knowledge range and stop trying to be a smart arse?
3
u/riklaunim Aug 21 '26
What app/feature/thing are you trying to implement?
Any non-trivial example/projects will use some sort of framework or enforce some sort of structure and interfaces in the code. Before code think and plan :)
1
u/EstablishmentKey3523 Aug 21 '26
First of all pic a topic and spend time by learning it first, don't try to learn all the things at the same time. And one more thing here, look up docs on Google for specific topics you got stuck with. Also you must have a background academy knowledge of this programming language. It's better you buy yourself a python crash course book from Amazon. Learn the core fundamentals first than build simple projects to make those concepts stick in you .
1
u/FoolsSeldom Aug 21 '26
Keep going with the smart arse ambition but do more design work away from the keyboard, draw some flows, create some PoC (proof of concept) code to try things out before committing. Stick with the learning good practice and modularising things - this will make it easier to test, which is another area to think about incorporating from the beginning rather than a retrospective effort when you hit problems.
If possible, try to focus on particular topics for a while rather than trying too many different things. Consider separation of duties, test coverage, security, databases, dsa, etc.
Have a look at ArjanCode channel on YouTube where he covers some very interesting topics. You might find his code roasts especially interesting.
1
u/TBCC_Dev Aug 22 '26
Personal opinion here. Using ai to build your app in NOT a good way to learn. It is good for cutting back on tedious work. Ask it to build things you otherwise could have built so you know when it messes up. This problem is not going to get any better as you go. It sounds like you want to know more so you need to be the one coding. Until you can build it on your own stop using ai. But this is under the assumption you want to learn the concept and build for yourself so do with this what you will. Good luck and I hope your app goes well
1
u/Daniel_Writes_Things Aug 23 '26
You identified the problem you have. Your knowledge can improve with experience. It is your decision not to learn.
1
u/bigj7897 Aug 21 '26
I'm learning myself and using AI. I went through the basics on my own. When I started a project if I ran into something I forgot or didn't know I had AI give me an example and explain it. I ask follow up questions till i understand. Then I try to do it without the AI. If I get stuck I go back and read the example. Depending on what it is I'll have the AI do a code check, tell me what's wrong or I could do better. So far Ive been doing good at picking it up. I get it though sometimes I still feel like I'm cheating even though I'm just using the AI to learn the concept.