When it comes to code, less is more. Or to be more precise, less is better.
How do you write less code and still write enough code to make your
applications function as required? One way is to reuse code: write code once,
use that code many times. If the words "code reuse" evoke thoughts of copying
bits of code and pasting it elsewhere, keep reading because this article will
teach you a better way!
When it comes to object-oriented ColdFusion Markup Language (CFML) using
ColdFusion components (CFCs), one approach to writing code once and using it
many times is making use of inheritance. This article will explain what
inheritance is and how you can take advantage of it in order to write less
code. Along the way, this article will ensure that you understand the basics
of CFCs and how they are used.
The best software not only functions as required by its users, but also... (more)