Hey everyone! I'm currently deep into a large personal project involving a multi-module system (13 modules) that all need to communicate with each other. I'm using VS Code and Python for development, and even though I've made decent progress, I've hit a wall with a lot of errors—mainly concerning undefined functions and modules not connecting properly. I've been stuck for a few days now, going in circles and feeling overwhelmed because I'm still pretty new to handling larger-scale projects. I really could use some advice on best practices, debugging strategies, or any tips on how to keep my sanity while working through these interdependent modules. Thanks a bunch!
5 Answers
From my experience, when working with ChatGPT on extensive codebases, it's easy to get tangled up in iterations. If you run into issues, I recommend creating a new conversation with the last known good version of your code. This way, it'll help refresh the context. Also, breaking down your project into manageable pieces makes it easier to communicate with tools like ChatGPT without losing track of what's happening.
This is a good time to start unit testing your existing code. It can feel like double work now, but it'll save you a lot of headaches down the line. Plus, try to break your project into smaller components and tackle them one at a time—that way you can maintain clarity and control over your progress.
I'd suggest starting fresh. Sometimes taking a step back can help you get a clearer view of your code. Tools like ChatGPT can be great, but as a beginner, you might find them overwhelming and complicating your debugging process. Focus on getting comfortable with your code before relying too heavily on AI. It's like trying to drive a fancy sports car without having learned to drive first—things can get messy!
Totally! It's better to build a solid foundation before adding complex tools. Plus, it can help you understand your code better.
Thanks, I appreciate the advice!
You might want to consider restarting and working on a minimal functional version of your project first. Once that’s up and running, you can build from there without so many complications. It's an effective strategy to avoid getting lost in the details too soon!
Thanks for the suggestion! I'll definitely try that.
If you didn't share your code or specific error messages, it's hard for others to really help you. You might find ChatGPT actually useful to clarify potential issues—after all, it did help you write the code in the first place!
Unit testing sounds like a plan, I'll look into that!