Computer science education or computing education is the art of teaching and learning the discipline of computer science, and computational thinking. As a subdiscipline of pedagogy it also addresses the wider impact of computer science in society through its intersection with philosophy, psychology, linguistics, natural sciences, and mathematics. In comparison to science education and mathematics education, computer science (CS) education is a much younger field. In the history of computing, digital computers were only built from around the 1940s – although computation has been around for centuries since the invention of analog computers.
Another differentiator of computer science education is that it has primarily only been taught at university level until recently, with some notable exceptions in Israel, Poland and the United Kingdom with the BBC Micro in the 1980s as part of Computer science education in the United Kingdom. Computer science has been a part of the school curricula from age 14 or age 16 in a few countries for a few decades, but has typically as an elective subject.
Primary and secondary computer science education is relatively new in the United States with many K-12 CS teachers facing obstacles to integrating CS instruction such as professional isolation, limited CS professional development resources, and low levels of CS teaching self-efficacy. According to a 2021 report, only 51% of high schools in the US offer computer science. Elementary CS teachers in particular have lower CS teaching efficacy and have fewer chances to implement CS into their instruction than their middle and high school peers. Connecting CS teachers to resources and peers using methods such as Virtual Communities of Practice has been shown to help CS and STEM teachers improve their teaching self-efficacy and implement CS topics into student instruction. 
Computing education research
Educational research on computing and teaching methods in computer science is usually known as Computing Education Research. The Association for Computing Machinery (ACM) runs a Special Interest Group (SIG) on Computer science education known as SIGCSE which celebrated its 50th anniversary in 2018, making it one of the oldest and longest running ACM Special Interest Groups.
Gender perspectives in computer science education
In many countries, there is a significant gender gap in computer science education. In 2015, 15.3% of computer science students graduating from non-doctoral granting institutions in the US were women while at doctoral granting institutions, the figure was 16.6%. The number of female PhD recipients in the US was 19.3% in 2018. In almost everywhere in the world, less than 20% of the computer science graduates are female. This problem mainly arises due to the lack of interests of girls in computing starting from the primary level. Despite numerous efforts by programs specifically designed to increase the ratio of women in this field, no significant improvement has been observed. Furthermore, a declining trend has been noticed in the involvement of women in past decades. The main reason for the failure of these programs is because almost all of them focused on girls in high school or higher levels of education. Researchers argue that by then women have already made up their mind and stereotypes start to form about computer scientists. Computer Science is perceived as a male dominated field, pursued by people who are nerdy and lack social skills. All these characteristics seem to be more damaging for a woman as compared to a man. Therefore, in order to break these stereotypes and to engage more women in computer science, it is crucial that there are special outreach programs designed to develop interest in girls starting at the middle school level and prepare them for a academic track towards the hard sciences.
Evidently, there are a few countries in Asia and Africa where these stereotypes do not exist and women are encouraged for a career in science starting at the primary level, thus resulting in a gender gap that is virtually nonexistent. In 2011, women earned half of the computer science degrees in Malaysia. In 2001, 55 percent of computer science graduates in Guyana were women.
- Fincher, Sally; Petre, Marian (2004). Computer Science Education Research. London: Taylor & Francis. ISBN 90-265-1969-9. OCLC 54455019.
- Sentance, Sue; Barendsen, Erik; Schulte, Carsten (2018). Computer science education : perspectives on teaching and learning in school. London: Bloomsbury. ISBN 978-1-350-05711-1. OCLC 999588195.
- Bruckman, Amy; Biggers, Maureen; Ericson, Barbara; McKlin, Tom; Dimond, Jill; DiSalvo, Betsy; Hewner, Mike; Ni, Lijun; Yardi, Sarita (2009). "Georgia computes! Improving the computing education pipeline". ACM SIGCSE Bulletin. 41 (1): 86. doi:10.1145/1539024.1508899. ISSN 0097-8418.
- Anon (2017). "Computing education". royalsociety.org.
- Fincher, Sally A.; Robins, Anthony V. (2019). The Cambridge Handbook of Computing Education Research (PDF). Cambridge University Press. doi:10.1017/9781108654555. ISBN 9781108654555. OCLC 1090781199. S2CID 243000064.
- Furber, Steve (2017). After the reboot: computing education in UK schools (PDF). London: Royal Society. ISBN 9781782522973.
- Guzdial, Mark (2008). "Education: Paving the way for computational thinking". Communications of the ACM. 51 (8): 25–27. doi:10.1145/1378704.1378713. ISSN 0001-0782. S2CID 35737830.
- Wing, Jeanette M. (2006). "Computational thinking" (PDF). Communications of the ACM. 49 (3): 33–35. doi:10.1145/1118178.1118215. hdl:10818/29866. S2CID 1693513.
- Wing, Jeanette M. (2008). "Computational thinking and thinking about computing". Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences. 366 (1881): 3717–3725. Bibcode:2008RSPTA.366.3717W. doi:10.1098/rsta.2008.0118. PMC 2696102. PMID 18672462.
- Tedre, Matti; Simon; Malmi, Lauri (2018). "Changing aims of computing education: a historical survey". Computer Science Education. 28 (2): 158–186. Bibcode:2018CSEd...28..158T. doi:10.1080/08993408.2018.1486624. S2CID 52884221.
- Tedre, Matti (2015). The science of computing : shaping a discipline. Boca Raton. ISBN 978-1-4822-1769-8. OCLC 870289913.
- Rogers, Yvonne; Shum, Venus; Marquardt, Nic; Lechelt, Susan; Johnson, Rose; Baker, Howard; Davies, Matt (2017). "From the BBC micro to micro:bit and beyond". Interactions. 24 (2): 74–77. doi:10.1145/3029601. ISSN 1072-5520. S2CID 24258819.
- Schwarzhaupt, Robert; Liu, Feng; Wilson, Joseph; Lee, Fanny; Rasberry, Melissa (2021-10-08). "Teachers' Engagement and Self-Efficacy in a PK–12 Computer Science Teacher Virtual Community of Practice". Journal of Computer Science Integration. 4 (1): 1. doi:10.26716/jcsi.2021.10.8.34. ISSN 2574-108X. S2CID 240864514.
- Kelley, Todd R.; Knowles, J. Geoffery; Holland, Jeffrey D.; Han, Jung (2020-04-16). "Increasing high school teachers self-efficacy for integrated STEM instruction through a collaborative community of practice". International Journal of STEM Education. 7 (1): 14. doi:10.1186/s40594-020-00211-w. ISSN 2196-7822. S2CID 216034569.
- Yadav, Aman; Gretter, Sarah; Hambrusch, Susanne; Sands, Phil (2016-12-08). "Expanding computer science education in schools: understanding teacher experiences and challenges". Computer Science Education. 26 (4): 235–254. doi:10.1080/08993408.2016.1257418. ISSN 0899-3408. S2CID 33792019.
- "2021 State of computer science education: Accelerating action through advocacy" (PDF). Code.org, CSTA, & ECEP Alliance. 2021.
- Cooper, Steve; Grover, Shuchi; Guzdial, Mark; Simon, Beth (2014). "A future for computing education research". Communications of the ACM. 57 (11): 34–36. doi:10.1145/2668899. ISSN 0001-0782. S2CID 34034556.
- Morrison, Briana; Settle, Amber (2018). "Celebrating SIGCSE's 50th anniversary!". ACM SIGCSE Bulletin. 50 (1): 2–3. doi:10.1145/3183559.3183560. ISSN 0097-8418. S2CID 19169248.
- "The Mixed News on Diversity and the Enrollment Surge". CRA. 2017-02-10. Retrieved 2020-05-05.
- 2018 Taulbee Survey, Computing Research Association. https://cra.org/wp-content/uploads/2019/05/2018_Taulbee_Survey.pdf
- Happe, Lucia; Buhnova, Barbora; Koziolek, Anne; Wagner, Ingo (2021-05-01). "Effective measures to foster girls' interest in secondary computer science education". Education and Information Technologies. 26 (3): 2811–2829. doi:10.1007/s10639-020-10379-x. ISSN 1573-7608. S2CID 228817008.
- Vitores, Anna; Gil-Juárez, Adriana (2016-11-01). "The trouble with 'women in computing': a critical examination of the deployment of research on the gender gap in computer science". Journal of Gender Studies. 25 (6): 666–680. doi:10.1080/09589236.2015.1087309. ISSN 0958-9236. S2CID 146570525.
- "what [sic!] gender is science" (PDF). Archived from the original (PDF) on September 24, 2015. Retrieved July 20, 2015.
- James, Justin. "IT gender gap: Where are the female programmers?". TechRepublic.