Subroutine as Basic Unit of Reusable Code

Rule of Thumb

Our general rule of thumb:

When you see repeated code, you should sense the opportunity to extract that code and place it in a subroutine.

Previous Back to start of show Next
Slide: 7 rule_of_thumb © 2003 James E. Keenan