What language are you programming in? In swift I have found all models (including sonnet) next to useless. Tells me something wrong almost every question i ask, has made up macros and apis, etc.
For English I have found Claude models slightly better than the GPT 4 subscription I used to have. For anything in multiple (human, not programming) languages, gpt has seemed best for me.