Experiences from Using Code Explanations Generated by Large Language Models in a Web Software Development E-Book

By Stephen MacNeil, Andrew Tran, Arto Hellas, Joanne Kim, Sami Sarsa, Paul Denny, Seth Bernstein, Juho Leinonen. 2022

251 citations recorded by the source corpus.

Advances in natural language processing have resulted in large language models (LLMs) that can generate code and code explanations. In this paper, we report on our experiences generating multiple code explanation types using LLMs and integrating them into an interactive e-book on web software development. Three different types of explanations -- a line-by-line explanation, a list of important concepts, and a high-level summary of the code -- were created. Students could view explanations by clicking a button next to code snippets, which showed the explanation and asked about its utility. Our results show that all explanation types were viewed by students and that the majority of students perceived the code explanations as helpful to them. However, student engagement varied by code snippet complexity, explanation type, and code snippet length. Drawing on our experiences, we discuss future directions for integrating explanations generated by LLMs into CS classrooms.

Subfields: Computer Science Applications, Information Systems, Software, Code Generation & Program Synthesis, Human-Computer Interaction

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Science Applications

  1. Paul Denny
  2. Juho Leinonen
  3. Sami Sarsa
  4. Arto Hellas
  5. Stephen MacNeil
  6. Seth Bernstein
  7. Andrew Tran
  8. Joanne Kim

In Information Systems

  1. Paul Denny
  2. Juho Leinonen
  3. Sami Sarsa
  4. Arto Hellas
  5. Shin Yoo
  6. Mark Harman
  7. Stephen MacNeil
  8. Seth Bernstein

In Software

  1. Shin Yoo
  2. Mark Harman
  3. Paul Denny
  4. Juho Leinonen
  5. Arto Hellas
  6. Sami Sarsa
  7. Shubho Sengupta
  8. Mitya Lyubarskiy

In Code Generation & Program Synthesis

  1. Paul Denny
  2. Juho Leinonen
  3. Sami Sarsa
  4. Arto Hellas
  5. Stephen MacNeil
  6. Seth Bernstein
  7. Andrew Tran
  8. Joanne Kim

In Human-Computer Interaction

  1. Paul Denny
  2. Sami Sarsa
  3. Juho Leinonen
  4. Arto Hellas
  5. Seth Bernstein
  6. Andrew Tran
  7. Stephen MacNeil
  8. Joanne Kim

Citations in the corpus