←back to thread

466 points 0x63_Problems | 2 comments | | HN request time: 0.416s | source
Show context
inSenCite ◴[] No.42142037[source]
On one hand I agree with this conceptually, but on the other hand I've also been able to use AI to rapidly clean up and better structure a bunch of my existing code.

The blind copy-paste has generally been a bad idea though. Still need to read the code spit out, ask for explanations, do some iterating.

replies(3): >>42142460 #>>42142747 #>>42143257 #
1. physicles ◴[] No.42143257[source]
Do you mind getting into specifics about how you've been using AI to restructure your code? What tools are you using, and how large is the code base you're working with?
replies(1): >>42153961 #
2. inSenCite ◴[] No.42153961[source]
Using a combination of both chatgpt and claude/sonnet. Codebase is not very complex or cutting edge (e.g., data pipeline to maintain a local db, and an analytics system). These are not enterprise or even public facing applications.

For additional context I have not been a software engineer professionally for over a decade but still am in the engineering field.

Usually I will feed in a few functions (or just 1), sometimes a whole module if it small enough, and prompt it for general performance, and maintainability improvements. I just kinda iterate from there. I also restart chats often