html5-img
1 / 30

Measuring the Effectiveness of Error Messages Designed for Novice Programmers

Measuring the Effectiveness of Error Messages Designed for Novice Programmers . Guillaume Marceau Kathi Fisler (WPI) Shriram Krishnamurthi (Brown) Danny Yoo (WPI/Brown , Utah). define: expected only one expression for the function body, but found at least one extra part.

jude
Download Presentation

Measuring the Effectiveness of Error Messages Designed for Novice Programmers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Measuring the Effectiveness of Error Messages Designed for Novice Programmers Guillaume Marceau Kathi Fisler (WPI) Shriram Krishnamurthi (Brown) Danny Yoo(WPI/Brown, Utah)

  2. define: expected only one expression for the function body, but found at least one extra part

  3. How well do error messages support learning(or fail to?) When errors fail to teach,in which ways do they fail? What makes a good error message?What is a valid metric of quality? Can we make recommendations to the creators of pedagogical IDEs/compilers/ languages?

  4. Prior Approaches to Message Effectiveness “Were the messages helpful?” No alternative Did grades improve? Too coarse

  5. = execution = receives an error message = keystroke The Student’s Response to the Error Message

  6. [DEL] Deletes the problematic code wholesale. [UNR] Unrelated to the error message, anddoes not help. [DIFF] Unrelated to the error message, but it correctly addresses a different error or makes progress in some other way [PART] Evidence that the student has understood the error message (though perhaps not wholly,) and is trying to take an appropriate action (though perhaps not well.) [FIX] Fixes the proximate error (though other cringing errors might remain.)

  7. Rater #2 Rater #1 • good • bad • good • good • bad • good • bad • good • good • good

  8. Inter-rater agreement : κ Rater #1 Rater #2 0.38 0.58 0.80 0.58 Expected Agreement = 0.702 + 0.302 = 0.58 slight fair moderate substantial excellent 0.0 1.0 perfect agreement 0.20 0.40 0.60 0.80 eq. to chance 0.38 0.84 worse than chance

  9. #error × %error × %bad = #bad

  10. Vocabulary difficulties n-ary tree Difficult structure accessor names

  11. Reflection • Rubric identifies pain points • Identifying fix needs deeper evaluation Curriculum Error Messages

  12. For the Community • Look at fine-grained edits • Gather around a common rubric

  13. Interviews • Four interviews • One hour long each • Done around the midterm • Average-to-good students

  14. Observation From Interviews 1 of 2

  15. Interviewer: The error message says “the function body.”Do you know what “function body” means? Student: Nah, the input, everything that serves as a piece of input? Interviewer: Actually, it's this. When DrScheme says “function body” it means this part. Student: Oh man! I didn't… [The student proceeds to fix the error successfully]

  16. What DrRacket Says: • define: expected only one expression for the functionbody, but found at least one extra part.

  17. What the Student Sees: • define: expected only one thingamabob for the geewhiz’swhosiewhatsit, but found one extra whatchamacallit.

  18. Circle an identifier in this program (define (celsius->fahrenheit temp) (+ (* temp 9/5) 32)) RIGHT WRONG

  19. Circle one instance of each vocabulary term in the code below Vocabulary term Sample usage Q1. Argument >: expects at least 2 arguments, given 1 Q2. Selector this selector expects 1 argument, here it is provided 0 arguments Q3. Procedure this procedure expects 2 arguments, here it is provided 0 arguments Q4. Expression expected at least two expressions after `and', but found only one expression Q5. Predicate this predicate expects 1 argument, here it is provided 2 arguments ;; (make-book number string string number numberbstbst) (define-struct book (isbn title author year copies left right)) ;; this-edition?: bst number number -> boolean ;; Consumes a binary search tree, an ISBN number, and a year, and produces true ;; if the book with the given ISBN number was published in the given year (define (this-edition? a-bstisbn-num year) (cond [(symbol? a-bst) false] [(book? a-bst) (cond [(= isbn-num (book-isbn a-bst)) (= year (book-year a-bst))] [(< isbn-num (book-isbn a-bst)) (this-edition? (book-left a-bst) isbn-num year)] [else (this-edition? (book-right a-bst) isbn-num year)])]))

  20. < 50%

  21. Serendipitous Controlled Trials  = Used in Class • Brown NEU WPI • Primitive name  • Procedure  • Primitive operator  • Field name  • Procedure application   • Predicate   • Defined name  • Type name  • Identifier   • Function body   • Function header   • Argument    • Clause    • Expression    • Selector   

  22. Quiz score residual(after factoring out word difficulty and university strength) Words used in class Number of times the word was presented to a student in an error message (WPI) Words NOT used in class

  23. For words used in class:more exposure in error messages better quiz scores p = 0.034 (which is statistically significant at the 0.05 level) Words used in class Words NOT used in class For words not used in class:more exposure in error messages worse quiz scores

  24. Observation From Interviews 2 of 2

  25. Interviewer: When you get these highlights, what do they mean to you? Student #1: The problem is between here and here, fix the problem between these two bars.

  26. DrRacket’sHighlight Semantics • This expression contains the error • The parser didn’t expect to find this • The parser expected to see something after this, but nothing is there • This parenthesis is unmatched • This expression is inconsistent with another part of the code

  27. Summary of Findings • Error messages need to explicate the meaning of the highlight. • Students need an avenue through which they will learn the vocabulary. • Error messages are hard to get right;user studies are important.

  28. Read  Understand  Formulate • [FIX] Fixes the proximate error (though other cringing errors might remain.) • [PART] Evidence that the student has understood the error message (though perhaps not wholly,) and is trying to take an appropriate action (though perhaps not well.) • [UNR] Edit unrelated to the error message, and does not help. • [DEL] Deletes the problematic code wholesale. • [DIFF] Edit unrelated to the error message, but it correctly addresses a different error or makes progress in some other way. • good • bad • good • good • bad n-ary tree Kathi Fisler (WPI)Shriram Krishnamurthi (Brown) kfisler@cs.wpi.edusk@cs.brown.edu

More Related