The ability to learn languages is a better predictor of success in computer programming and coding than math skills, researchers found. The study points to stereotypes and math prerequisite courses as barriers to attracting more diversity to coding and connects coding more to the cognitive skills needed to learn languages and the working memory of students.
Prat, C.S., Madhyastha, T.M., Mottarella, M.J. et al. Relating Natural Language Aptitude to Individual Differences in Learning Programming Languages. Sci Rep 10, 3817 (2020). https://doi.org/10.1038/s41598-020-60661-8