Discussion about this post

User's avatar
Daniel Reeves's avatar

Update: I've ditched the rule about never deleting human-written code. For one thing, it has no good way to know what was human vs AI-generated code. More annoyingly, it kept tying itself in knots about it instead of just commenting out chunks of code with "safe to delete this". It would even make messes of attempts to refactor code where it would try to move code to a new file by first copying it over but then then being unwilling to delete original. It was idiotic. Which of course is a running theme with current AI -- un utterly bizarre combination of shockingly capable and shockingly inept.

I'm also working on how to refine my "avoid if-statements" rule. Sometimes the AI will do the malicious compliance thing of writing a convoluted mess to avoid a literal if-statement, oblivious to the spirit of the injunction. Thanks to Nathan Arthur for pointing me to the concept of Cyclomatic complexity. I'm experimenting whether telling the AI to focus on minimizing that fares better.

No posts

Ready for more?