I think the unstated assumption here is that some of the criticism comes from different places.
1. what you have identified here, thinking they're useless
2. wanting them to be useless because they like the process of writing code itself, and AI makes that less important, so it's a form of wishful thinking.
3. having ethical concerns about AI, so they want it to fail. And part of that is dismissing their usefulness (after all, it's easier to get rid something which isn't that useful...)
I personally find the third one quite fascinating -- like the cognitive dissonance about how the whole free software movement started out as a way to subvert copyright and nowadays they're almost the biggest defenders of it... but I do understand the reasoning here.
1. what you have identified here, thinking they're useless
2. wanting them to be useless because they like the process of writing code itself, and AI makes that less important, so it's a form of wishful thinking.
3. having ethical concerns about AI, so they want it to fail. And part of that is dismissing their usefulness (after all, it's easier to get rid something which isn't that useful...)
I personally find the third one quite fascinating -- like the cognitive dissonance about how the whole free software movement started out as a way to subvert copyright and nowadays they're almost the biggest defenders of it... but I do understand the reasoning here.