WY Computer Science
The function design process that we use is:
See Chapter 6 Animations for the design process as it applies to writing animations (big-bang).
The Animations Slides detail the issues when writing handlers.