Forums

Refactoring Code Base, Integrating AI based tools into IDE

I have been haphazardly testing out programming a website using very basic features and tutorials but want to convert it into a more professional website, both from a back end and from a front end perspective. I want to refactor my back end code base and integrate some of the AI based tools like Copilot to do it: what is the best way to re organize my back end and professionalize it while using some of the AI based coding assistants?

That's a really good question, and while it's not something we (the PythonAnywhere tech support team) can help with, perhaps other people here on the forums will have some ideas?

I've settled on the following and it works fairly well so far.

  1. Use git to clone the whole repository into an IDE (VSCode better for next step).
  2. use those tools to refactor variables and files
  3. Using VSCode and Cline + 10$ in Openrouter to use a model like Llama 3.3, Ask it to make changes.

Start by inputting the whole structure into o1 and asking for how the app should be structured. Then proceed with the refactoring. Use the o1 guide as a map and Cline as the car to drive along that map (write the code).

Still working through it, but it's worked nicely so far. Haven't tested with HTML yet, but for future reference, all my code will be done locally, and I will use GIT to manage edits. Takes time, but the IDE is just that bad on PA.