# Pilot - U2L08 - Clean Coding and Debugging

**URL:** <https://forum.code.org/t/pilot-u2l08-clean-coding-and-debugging/5885>\
**Category:** Unit and Lesson Discussion\
**Tags:** csd-unit-2, csd-unit-2-lesson-8\
**Created:** [October 28, 2016, 1:11am UTC](https://forum.code.org/t/pilot-u2l08-clean-coding-and-debugging/5885 "2016-10-28T01:11:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dani](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/dani/32/285_2.png) [@dani](https://forum.code.org/u/dani)\
**Post date:** [October 28, 2016, 1:11am UTC](https://forum.code.org/t/pilot-u2l08-clean-coding-and-debugging/5885/1 "2016-10-28T01:11:57Z")

</div>

Please leave any feedback, thoughts, or resources for the lesson here. As a reminder, good feedback has the following elements:

- description of your school and classroom context
- details on what went well when teaching this lesson
- details on what **didn’t** go well when teaching this lesson
- a description of the changes you would recommend to improve the lesson (including formative assessment opportunities you added to the lesson)
- details on the types of deviations you made from the lesson

For more details on what good feedback looks like, check out the [feedback guide](https://docs.google.com/document/d/1Nv7072tzl3ZaOLdE7pii3i0fXzCiYdxO4mzHrmJcw6U/edit#)!

---

<div class="post-metadata">

**Author:** ![chadkm](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/chadkm/32/2815_2.png) [@chadkm](https://forum.code.org/u/chadkm)\
**Post date:** [February 28, 2017, 2:12am UTC](https://forum.code.org/t/pilot-u2l08-clean-coding-and-debugging/5885/2 "2017-02-28T02:12:58Z")

</div>

The debugging lesson gave me a good chance to look at student progress and see how well they could reflect on the code they were learning. Approaching as a no-stress check-in, I was able to have discussions with students in a way that allowed me to understand their thinking as they worked through these tasks. When students would get stuck, I could listen and ask questions to better determine why they were getting stuck. Students who generally were understanding the topic and language, were able to fly through the tasks and move on the Stage 7 pretty smoothly.

---

<div class="post-metadata">

**Author:** ![josh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/josh/32/868_2.png) [@josh](https://forum.code.org/u/josh)\
**Post date:** [February 28, 2017, 11:48pm UTC](https://forum.code.org/t/pilot-u2l08-clean-coding-and-debugging/5885/3 "2017-02-28T23:48:23Z")

</div>

Glad to hear that the debugging went so well. I’m curious how the Web Development Practices guide is working out. Did students use it to track their bugs? Does it feel like a useful resource?

---

<div class="post-metadata">

**Author:** ![chadkm](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/chadkm/32/2815_2.png) [@chadkm](https://forum.code.org/u/chadkm)\
**Post date:** [March 13, 2017, 2:48pm UTC](https://forum.code.org/t/pilot-u2l08-clean-coding-and-debugging/5885/4 "2017-03-13T14:48:56Z")

</div>

The problem with using a document like this over the course of multiple weeks is that students are prone to lose it and I need to remember to have them fill it in. We did make a list of common bugs, but I don’t know the extent to which students put them in their packet and re-used that at a later date.

---

<div class="post-metadata">

**Author:** ![elizabeth\_admin](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@elizabeth\_admin](https://forum.code.org/u/elizabeth_admin)\
**Post date:** [March 13, 2017, 11:02pm UTC](https://forum.code.org/t/pilot-u2l08-clean-coding-and-debugging/5885/5 "2017-03-13T23:02:42Z")

</div>

Thanks, Chad. I’m wondering whether there’s another format we could support that would work better, or if the document is just hard to keep track of in any form. Would it be better online?

---

<div class="post-metadata">

**Author:** ![chadkm](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/chadkm/32/2815_2.png) [@chadkm](https://forum.code.org/u/chadkm)\
**Post date:** [March 15, 2017, 1:47pm UTC](https://forum.code.org/t/pilot-u2l08-clean-coding-and-debugging/5885/6 "2017-03-15T13:47:28Z")

</div>

It seems to me that it may be a classroom by classroom situation. Perhaps offering a Google Doc version and some sort of online version could be helpful. What I may do next year is share one copy with my entire class via Google Classroom, so we can all edit the same document. Thanks to new features in Google Classroom, I could actually share the same document with small groups of students instead of the whole class. I guess I will have think about it.

---

<div class="post-metadata">

**Author:** ![bradleywellsashley](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bradleywellsashley/32/522_2.png) [@bradleywellsashley](https://forum.code.org/u/bradleywellsashley)\
**Post date:** [April 26, 2017, 2:37pm UTC](https://forum.code.org/t/pilot-u2l08-clean-coding-and-debugging/5885/7 "2017-04-26T14:37:29Z")

</div>

Notes:  
11 students, 9-12th Grades with little experience in CS.

**U2L06 - Clean Code and Debugging**

This was a good checkpoint lesson which students could work on independently and I used the classroom to individual meet with students. As I’ve mentioned before, a lot of students weren’t understanding the structure of the webpage ("\< !DOCTYPE html\>\< html\>\< head\>\< /head\>\< body\>\< /body\>\< /html\>") and typing a lot of their information in the \< head\> rather than \< body\>. So I know to really push on what goes where for next time, and this lesson gave me a chance to do so. Out of habit, I use/used comments in my code earlier in the lessons so students had been exposed to it and understood the purpose, as they saw it in practice earlier.

---

<div class="post-metadata">

**Author:** ![dani](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/dani/32/285_2.png) [@dani](https://forum.code.org/u/dani)\
**Post date:** [April 27, 2017, 2:43pm UTC](https://forum.code.org/t/pilot-u2l08-clean-coding-and-debugging/5885/8 "2017-04-27T14:43:31Z")

</div>

@bradleywellsashley What strategies have you tried for getting them to understand head and body? Those are definitely hard tags to teach because its hard to see their impact on the page.

---

<div class="post-metadata">

**Author:** ![bradleywellsashley](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bradleywellsashley/32/522_2.png) [@bradleywellsashley](https://forum.code.org/u/bradleywellsashley)\
**Post date:** [May 2, 2017, 5:08pm UTC](https://forum.code.org/t/pilot-u2l08-clean-coding-and-debugging/5885/9 "2017-05-02T17:08:20Z")

</div>

I was absent so as a reinforcement for the entire class, I sent them to Khan Academy which doesn’t allow students to progress unless they understand the concept. Like every class, some liked that structure and some didn’t.

---

<div class="post-metadata">

**Author:** ![dani](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/dani/32/285_2.png) [@dani](https://forum.code.org/u/dani)\
**Post date:** [June 12, 2017, 5:50pm UTC](https://forum.code.org/t/pilot-u2l08-clean-coding-and-debugging/5885/10 "2017-06-12T17:50:17Z")

</div>

Closed on June 12, 2017, 5:50pm UTC


