"Don't talk to strangers" may sound like the advice your mother used to give
you as a child, but as is so often the case, mother knows best. As we'll soon
see, "don't talk to strangers" or "only talk to your friends" is advice that
can apply to programming as well. In programming terms, this general concept
is known as the Law of Demeter, and it's a great programming practice that
facilitates a reduction in coupling between objects in object-oriented
applications.
Before you turn to the next article and dismiss this as applicable to OO
programming but having no relevance to your procedural Fusebox application,
read on as you'll see that the benefits of the Law of Demeter can easily be
gained in any application that uses ColdFusion components (CFCs). By applying
the Law... (more)