@grimalkina I agree and I can also relate on two counts. Firstly the general cognitive skills. I've seen a claim (don't remember where) that good programmers are often also good writers. Maybe also vice versa. I strongly suspect that is not a coincidence and that there is a large overlap in the skills needed for programming and the skills needed for writing. I also teach a programming course for beginners and noticed that most course participants are able to learn to program. While all participants are academics, they are usually in the humanities and not all of them are intrinsically motivated. This has given me the impression that programming is not nearly as exclusive as some people like to portray it.
Secondly the working memory. Mine is not exceptionally good. In fact, I have trouble remembering a shopping list with three items. I am gifted but I also have ADHD. According to an IQ test, my working memory was above average but not nearly as much as my verbal and spatial intelligence. Yet my programming skills tend to be regarded as quite good by people who have seen me do it (I am a tech lead in a professional team of nine, I maintain a few well known open source libraries and I am also somewhat active in online programming forums, so my work is relatively often seen by others). I don't feel like I need to rely much on my working memory while programming, because I can constantly see the code I'm writing laid out in front of me. The claim that working memory is specifically important for programming, which I see for the first time in your thread, does not strike me as very convincing for all these reasons.
To add to the point on working memory, I have a teammate who is even more forgetful than I am, while he is also famous within our team for always being able to get code to work. I hope you will forgive me for mentioning you here @sheeanspoel, maybe you can share your thoughts on this.