# Unit 2 Lesson 11 slideshow Missed Opportunity?

**URL:** <https://forum.code.org/t/unit-2-lesson-11-slideshow-missed-opportunity/41483>\
**Category:** AI Foundations\
**Created:** [October 28, 2025, 3:29pm UTC](https://forum.code.org/t/unit-2-lesson-11-slideshow-missed-opportunity/41483 "2025-10-28T15:29:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdonwells](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jdonwells/32/7900_2.png) [@jdonwells](https://forum.code.org/u/jdonwells)\
**Post date:** [October 28, 2025, 3:29pm UTC](https://forum.code.org/t/unit-2-lesson-11-slideshow-missed-opportunity/41483/1 "2025-10-28T15:29:59Z")

</div>

On slide 9 the most obvious decomposition is top and bottom since they are identical.

Let’s not forget abstraction. `paint_line(painter, color)`. How about `paint_two_color_line(painter, color_1, color_2)`.

So instead:

> **Functions:**  
> paint\_half(painter)  
> paint\_line(painter, color)  
> paint\_two\_color\_line(painter, color\_1, color\_2)
