Definition:
A grouping of re-usable code which consists of particular data structures and algorithms. A function should be used whenever the same code would be repeated two or more times.
From Al Lukaszewski, former About.com Guide
A grouping of re-usable code which consists of particular data structures and algorithms. A function should be used whenever the same code would be repeated two or more times.