Quote:
Originally Posted by Farang
any tips / advice on refactoring? 
|
I go thro line by line, or function by function and read it all, gut anything I don't need, or dead functions that the AI has left in the code etc... while rare, if I come across something I don't understand in the code, I will ask it what its doing on those specific lines, to decide if I need to refactor it.
If you cant code, I'd go thro function by function, and have another AI check its work, have it tell you exactly what the code is doing, and remove or fix or ADD as needed along the way. ( over time, this will teach you to code ) just as a side effect.
I tend to use AI very surgically, building small, event driven components so its easier for the AI to digest, and easier on me to debug, and refactor
I do have to wonder about this experience for non-coders, as I ran into something the other day that a non coder would never figure out, but I knew what was going on... it would have made me throw my computer if I wasnt a coder though