a) people who lack the insight to realize it, and thus don't work to fix it b) people who realize it but don't care (for various reasons, some valid some not)
If you're agonizing over your job competence and trying to improve but feel you aren't succeeding, then it's vastly more likely that either your job specification is impossible, or you're setting unreasonable personal goals around your job.
There's also a chicken and the egg issue here; perhaps the author really does not enjoy coding and thus is not willing to put in the effort to improve?
None of that is in question, but let me ask you this: are you a professional basketballer?
I'm not a professional chef, read into that as you will.
It's very possible to be bad at something AND know that you're bad at it AND not be able to reach the proficiency to perform the task at a professional level.
Also, it's pretty clear that I can read. If you are going to insult me, it's better to insult my comprehension or argumentation. However, I would argue that it's generally better to just not insult other people.
You forgot to add "AND still be employed in that capacity."
When I doubt my dancing skills, it's a rational evaluation.
Sure it is. Impostor syndrome is defined as the state of affairs where your emotional assessment of your competence is lower than your actual competence. The definition does not depend on which aspect of the task is being discussed. "I can't write code" (when you can) and "I'm too slow" (when the people who appear faster, are doing it by just sweeping bugs under the carpet) are both impostor syndrome.
I will add that by the sound of things, the reason you have impostor syndrome is because your previous bosses have been bullies, sadists and sociopaths who successfully accomplished their goal of damaging your morale for their own pleasure. This is sadly not a rare state of affairs, but it's not universal either. Never be reluctant to look for another job if your boss is an asshole.