View Single Post
Old 03-15-2025, 11:43 AM  
machinegunkelly
Confirmed User
 
machinegunkelly's Avatar
 
Join Date: Jun 2003
Posts: 3,276
Quote:
Originally Posted by Farang View Post
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
__________________
dead.
machinegunkelly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote