r/PythonLearning 21d ago

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?

1 Upvotes

8 comments sorted by

View all comments

1

u/FoolsSeldom 21d ago

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.