All developers write—or should write—code with reuse in mind. There are many reasons why this is a good idea:
Saving time. If it’s written once, don’t write it again.
Easier maintenance. Make a change in one place and any code that uses it gets that change automatically.
Easier debugging. Fewer copies exist out there that will need to be fixed.
Group development. Developers can share code more easily.
Most of the code reuse in this book involves ColdFusion code, but to demonstrate basic reuse, let’s look at a simple example.