3 ms·
I've been finding that they can write surprisingly elegant code, you just have to ask them to. It seems to be kind of like the old generative AI art days where
by andai 4mo ago
I've been finding that they can write surprisingly elegant code, you just have to ask them to. It seems to be kind of like the old generative AI art days where you still had to add "+quality -bad" to the prompt.
Failing that they default to the most common style they were trained on. Which, at this point, is mostly code they wrote...
- cadamsdotcom 4mo agoYes, and, write custom linters for things you want to prevent forever. Have a look at https://github.com/cadamsdotcom/CodeLeash/blob/main/scripts/check_dynamic_imports.py https://github.com/cadamsdotcom/CodeLeash/blob/main/scripts/... for an example (enforced before all commits via https://github.com/cadamsdotcom/CodeLeash/blob/main/.pre-commit-config.yaml#L40 https://github.com/cadamsdotcom/CodeLeash/blob/main/.pre-com...) Basically I got sick of telling the agent to put dynamic imports at the top of the file so I made them into an error that blocks commits. Now I don’t even need that in the review.md because it can’t make it though to /review.