@futurebird this is a great outline for a “debug” lesson. I try to scaffold up to writing their own code over the semester:
Assignment 1 Read code: give them working code and they add comments.
Assignment 2 Debug code: give them broken code WITH comments of what it’s SUPPOSED to do and see if they can fix it. Both typos and logic errors. But I give this assignment after teaching about break points and other debugging tools.
Only after that are they allowed to start writing code. After that they tend to bug me less in class with their errors (pun intended
).
unfmeghan@dmv.community
@unfmeghan@dmv.community
Beiträge
-
Wanted: Advice from CS teachers