Teaching CS50 with AI
Overview
CS50, taught by David Malan, has integrated AI tools like CS50.AI and CS50.dev to provide students with 24/7 personalized support, acting as a virtual rubber duck. This approach, built on APIs from OpenAI and Microsoft Azure, aims to guide students toward solutions rather than providing direct answers, enhancing learning and reducing reliance on human TAs for basic queries. The system has seen significant adoption, with over 327,000 users and 15.5 million prompts, leading to increased student engagement and improved code quality.
Key takeaways
- CS50 created its own AI tools (CS50.AI, CS50.dev) to guide students, acting as a 'rubber duck' rather than providing direct answers.
- The CS50 AI system uses a specific system prompt to define its role as a helpful, non-judgmental teaching assistant focused on CS50 material.
- VS Code extensions within CS50.dev enable AI-powered code explanation, style feedback ('Style 50'), and design review ('Design 50').
- The integration of AI has led to a decrease in student questions to TAs (0.89 to 0.28 per student) and office hour attendance (51% to 30%).
- Student grades have increased, prompting CS50 to question assessment methods and experiment with digital oral examinations.
- Students describe the AI experience as having a 'personal tutor' with 'inhuman patience' and no judgment.
Chapters
- David Malan teaches CS50, Harvard's introduction to computer science, available online for free via edX.
- AI tools like ChatGPT were deemed too helpful for answering questions or writing code.
- CS50's policy prohibits using external AI for direct answers or code generation.
- CS50 developed its own AI tools, including CS50 Duck (CS50.AI and CS50.dev), to assist students.
- CS50.dev provides a cloud-based Visual Studio Code (VS Code) environment with pre-installed tools.
- A VS Code extension allows students to highlight code and receive AI-generated explanations.
- The 'Style 50' feature provides feedback on code formatting and aesthetics, with an option to explain changes.
- 'Design 50' offers AI-driven code review feedback to improve maintainability and readability.
Transcript excerpt
0:00 Hello world. My name is David Malan, and I teach CS 50, which is Harvard University's introduction to the intellectual enterprises of computer science and the art of programming. The course is also offered through the University of Oxford, as well as via open courseware, which means anyone can take the course online for free. In fact, if you'd like to start yourself, you can visit CS50. edX.org. Now, for the past several years, AI-based tools like Chat GPT have simply been all too helpful, all too willing to answer a student's question. An outright or even provide outright solutions to code in a class like ours, which is largely oriented around programming. And so a few years back we decreed early on through policy in the course of syllabus that is simply not reasonable to use AI-based tools like Chat GPT to either answer questions or write code. But we did want to meet students halfway and
0:47 somehow leverage as best we can this nascent technology. And so at the same time we deemed it reasonable to use CS 50's own AI-based software, including So-called CS50 Duck or DDB do debugger for short in CS50.AI and CS50.dev, 2 applications that we provide to students throughout the course. This is to say that we essentially built our own layer on top of the underlying APIs or application programming interfaces that companies like OpenAI, Microsoft, and others provide so as to build and affect our own personality in the form of, in our case, indeed a rubber duck. Now, for those unfamiliar, it's commonplace in programming. Circles to exercise what's called rubber duck debugging whereby in the absence of having a colleague, a family member or friend who knows more than you about the subject, you should verbalize your confusion, your questions to an NMN object on your desk like a rubber duck.
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, CS50.