3 ms·
I have in my codebase several really long django views files (3k lines!). They were written in a poor fashion with many nested if statements for parsing and er
by crucialfelix 3y ago
I have in my codebase several really long django views files (3k lines!). They were written in a poor fashion with many nested if statements for parsing and error handling.
On a one by one basis I can use VSCode github copilot to rewrite each one the way I want it.
What I want to do is iterate through all functions in the files and do each one of them.
I know we are getting there, but does anybody know how that can be done right now?
- elietoubi 3y agoHave you tried cursor.sh Not affiliated with them but it's actually pretty incredible for long context
- Eager 3y agoGive Claude 3 Opus a shot maybe. One of the reasons I have stayed well clear of the IDE tools is they force me to use their own model. While they might be convenient it means I can't switch to whatever the SOTA model of the day is at the drop of a hat. Opus is awesome and well worth a shot.