{"id":89586,"date":"2025-03-06T10:52:35","date_gmt":"2025-03-06T10:52:35","guid":{"rendered":"https:\/\/www.raspberrypi.org\/?p=89586"},"modified":"2025-03-06T10:57:32","modified_gmt":"2025-03-06T10:57:32","slug":"integrating-generative-ai-into-introductory-programming-classes","status":"publish","type":"post","link":"https:\/\/www.raspberrypi.org\/blog\/integrating-generative-ai-into-introductory-programming-classes\/","title":{"rendered":"Integrating generative AI into introductory programming classes"},"content":{"rendered":"\n
Generative AI (GenAI) tools like GitHub Copilot and ChatGPT are rapidly changing how programming is taught and learnt. These tools can solve assignments with remarkable accuracy. GPT-4, for example, scored an impressive 99.5% on an undergraduate computer science exam, compared to Codex\u2019s 78% just two years earlier<\/a>. With such capabilities, researchers are shifting from asking, \u201cShould we teach with AI?\u201d to \u201cHow do we teach with AI?\u201d<\/p>\n\n\n\n Leo Porter and Daniel Zingaro have spearheaded this transformation through their groundbreaking undergraduate programming course. Their innovative curriculum integrates GenAI tools to help students tackle complex programming tasks while developing critical thinking and problem-solving skills.<\/p>\n\n\n\n Leo and Daniel presented their work at the Raspberry Pi Foundation research seminar in December 2024. During the seminar, it became clear that much could be learnt from their work, with their insights having particular relevance for teachers in secondary education thinking about using GenAI in their programming classes<\/p>\n\n\n\n In 2023, Leo and Daniel introduced GitHub Copilot in their introductory programming CS1-LLM course<\/a> at UC San Diego with 550 students. The course included creative, open-ended projects that allowed students to explore their interests while applying the skills they\u2019d learnt. The projects covered the following areas:<\/p>\n\n\n\n Students consistently reported that these projects were not only enjoyable but also responsible for deepening their understanding of programming concepts. A majority (74%) found the projects helpful or extremely helpful for their learning. One student noted that.<\/p>\n\n\n\n “Programming projects were fun and the amount of freedom<\/strong> that was given added to that. The projects also helped me understand how to put everything that we have learned<\/strong> so far into a project that I could be proud of.<\/em>“<\/p>\n<\/blockquote>\n\n\n\n Leo and Daniel emphasised that teaching programming with GenAI involves fostering a mix of traditional and AI-specific skills.<\/p>\n\n\n Their approach centres on six core competencies:<\/p>\n\n\n\n Ethical and metacognitive skills<\/strong>: Students engage in discussions about responsible AI use and reflect on the decisions they make when collaborating with AI tools.<\/p>\n\n\n The rise of GenAI has prompted educators to rethink how they assess programming skills. In the CS1-LLM course, traditional take-home assignments were de-emphasised in favour of assessments that focused on process and understanding.<\/p>\n\n\n While Leo and Daniel reported that the integration of AI tools into their course has been largely successful, it has also introduced challenges. Surveys revealed that some students felt overly dependent on AI tools, expressing concerns about their ability to code independently. Addressing this will require striking a balance between leveraging AI tools and reinforcing foundational skills.<\/p>\n\n\n\n Additionally, ethical concerns around AI use, such as plagiarism and intellectual property, must be addressed. Leo and Daniel incorporated discussions about these issues into their curriculum to ensure students understand the broader implications of working with AI technologies.<\/p>\n\n\n\n Leo and Daniel\u2019s work demonstrates that GenAI can transform programming education, making it more inclusive, engaging, and relevant. Their course attracted a diverse cohort of students, as well as students traditionally underrepresented in computer science \u2014 52% of the students were female and 66% were not majoring in computer science \u2014 highlighting the potential of AI-powered learning to broaden participation in computer science.<\/p>\n\n\n By embracing this shift, educators can prepare students not just to write code but to also think critically, solve real-world problems, and effectively harness the AI innovations shaping the future of technology.<\/p>\n\n\n\n If you\u2019re an educator interested in using GenAI in your teaching, we recommend checking out Leo and Daniel\u2019s book, Learn AI-Assisted Python Programming<\/em><\/a>, as well as their course resources on GitHub<\/a>. You may also be interested in our own Experience AI resources<\/a>, which are designed to help educators navigate the fast-moving world of AI and machine learning technologies.<\/p>\n\n\n\n Our 2025 seminar series is exploring how we can teach young people about AI technologies and data science. At our next seminar on Tuesday, 11 March at 17:00\u201318:00 GMT, we\u2019ll hear from Lukas H\u00f6per and Carsten Schulte from Paderborn University. They\u2019ll be discussing how to teach school students about data-driven technologies and how to increase students\u2019 awareness of how data is used in their daily lives.<\/p>\n\n\n\n To sign up and take part in the seminar, click the button below \u2014 we\u2019ll then send you information about joining. We hope to see you there.<\/p>\n\n\n\n

Practical applications in the classroom<\/h2>\n\n\n\n
\n
\n
Core skills for programming with Generative AI<\/strong><\/h2>\n\n\n\n

\n
<\/figure>\n<\/div>\n\n\nAdapting assessments for the AI era<\/strong><\/h2>\n\n\n\n

\n
Challenges and lessons learnt<\/strong><\/h2>\n\n\n\n
A future-oriented approach<\/strong><\/h2>\n\n\n\n
<\/figure>\n<\/div>\n\n\nJoin us at our next online seminar on 11 March<\/strong><\/h2>\n\n\n\n