Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Editor's Forum


February 2001/Editor's Forum


Yes We Have No Panaceas

The software development profession can be scary sometimes. While there seem to be no silver bullets, there are definitely a few werewolves roaming around. The good news is that they can be subdued, through a combination of non-magical skills and strategies. The bad news is we tend to forget that, and we start believing in silver bullets once again. In more prosaic terms, successful software development depends on the application of partial solutions, the only kind of solutions we really have. We get into trouble when we start believing in panaceas. It is a lesson our industry seems destined to learn again and again.

Design patterns are an excellent example of a partial solution. They promote a unique kind of reuse, not so much of code as of forms, specifically architectures and patterns of interaction. Properly applied design patterns promote clarity in both design and in technical communication. Improperly applied patterns yield troublesome designs — ones that are flawed but appear to have the stamp of authority. Perhaps the most common mistake with patterns is confusing a sample implementation with the pattern itself. If the implementation is bad, we say the pattern is bad. Or worse, we say the implementation must be okay because it is a pattern, and everyone knows patterns are cool. Another common mistake is viewing patterns as components, to be "plugged into" an application. Patterns shape applications; they cannot be plugged into them any more than a blueprint can be plugged into a house. Ironically, our training in OOP predisposes us to this mistake, because it encourages us to "think modular." Encapsulation is a habit that has served us well — it just doesn’t work so well when thinking about patterns.

For people who put stock in Jungian psychology, this issue of CUJ fairly resonates with synchronicity. No less than three articles demonstrate the application of design patterns. What’s more, each of these articles shows how to combine two or more patterns to achieve a better solution. I think these articles demonstrate an appropriate approach toward patterns. The authors do not wave them around like some sort of magic wand. They use them as a guide that increases the order and clarity of their code.

On another note, I want to make amends for a serious oversight in last month’s editorial. When I introduced Andrew Koenig as our newest columnist, I gave extremely short shrift to his co-author and wife, Barbara Moo. That is to say, I did not mention at all that she would be regularly collaborating with Andy on their "C++ Made Easier" column. I confess I did not realize this — I may have dropped an email in the hubbub of the past few months, or maybe I am finally going senile. At any rate, I want to point out that, like Andy, Barbara comes to us with many impressive credentials. She has been in the software field for two decades. Among other things, she managed AT&T’s first C++ compiler project, and she has co-authored two C++ books with Andy. We are very happy to have her aboard. Please give her a warm welcome.

Marc Briand
Editor-in-Chief


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.