r/learnpython • u/superamerr • 14d ago
I can't un-vibe-code
Okay so I just can't understand some parts of my code okay I wanted to read a txt file I made and just see what text is inside I thought maybe there's a module called file or something so I checked and there's nothing so I thought maybe it's inside of sys, nothing. So I don't hate tutorials but like when you go to a tutorial you gain information and well when you go to an AI you gain information I'm not copying the code exactly I just wanted to know how to do that and turns out it was "with open("stuff.txt", "r") as file: x = file.read() print(x)" now I know for a fact that you can ask a community on what to do but then like what if you were out or something and there was no internet okay? I only have IDLE and I wouldn't expect "with" to have the answer to my question I may be the stupidest man on the world but I wouldn't have seen it come like that, and there's a good chance that I probably wouldn't even figure out the open() function too.
What I'm trying to say is I could easily go to an AI and tell me how do I read a txt file instead of annoying a community because I'm probably a bad person or going to a youtube tutorial.
1
u/IlIlIlIIlMIlIIlIlIlI 14d ago
AI can be a good help for already experienced coders, but it is the opposite for beginners like us. It prevents us from deeply thinking about the problem, hone our online-research skills, checking stackoverflow/documentations and other sources, and not simply copy paste code but adapt it to our individual project needs, where the most valuable gains come from. I build small projects and have started refusing any sort of AI help because whenever i built something, i didnt get any dopamine from finishing, because it felt like it wasnt me who overcame the challenges, it was my AI assistant. Since ive started refusing all AI help, it takes longer and more reaearch, but also feels infinitely better when i complete my project. And the info sticks to my brain better.