design-template.xml
Delivered as text/xml
[ hide source ] | [ make this the default ]
File Contents
<?xml version='1.0' ?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!ENTITY % myvars SYSTEM "../variables.ent">
%myvars;
]>
<sect1 id="filename" xreflabel="Name of Document">
<title>Detailed Design Documentation Template</title>
<para>By <ulink url="mailto:youremail@example.com">You</ulink></para>
<sect2 id="yourpackage-design-start-note">
<title>Start Note</title>
<para>
<emphasis>NOTE: Some of the sections of this template may not apply to your
package, e.g. there may be no user-visible UI elements for a component
of the OpenACS Core. Furthermore, it may be easier in some circumstances
to join certain sections together, e.g. it may make sense to discuss
the data model and transactions API together instead of putting them
in separate sections. And on occasion, you may find it easier to
structure the design discussion by the structure used in the
requirements document. As this template is just a starting point, use
your own judgment, consult with peers when possible, and adapt
intelligently.</emphasis>
</para>
<para>
<emphasis>Also, bear in mind <emphasis role="strong">the audience</emphasis> for detailed design: fellow
programmers who want to maintain/extend the software, AND parties
interested in evaluating software quality. </emphasis>
</para>
</sect2>
<sect2 id="yourpackage-design-essentials">
<title>Essentials</title>
<para>
When applicable, each of the following items should receive its own link:
</para>
<itemizedlist>
<listitem><para> User directory </para></listitem>
<listitem><para> OpenACS administrator directory </para></listitem>
<listitem><para> Subsite administrator directory </para></listitem>
<listitem><para> Tcl script directory (link to the API browser page for the package) </para></listitem>
<listitem><para> PL/SQL file (link to the API browser page for the package) </para></listitem>
<listitem><para> Data model </para></listitem>
<listitem><para> Requirements document </para></listitem>
<listitem><para> ER diagram </para></listitem>
<listitem><para> Transaction flow diagram </para></listitem>
</itemizedlist>
</sect2>
<sect2 id="yourpackage-design-introduction">
<title>Introduction</title>
<para>
This section should provide an overview of the package
and address at least the following issues:
</para>
<itemizedlist>
<listitem><para> What this package is intended to allow the user (or different
classes of users) to accomplish. </para></listitem>
<listitem><para> Within reasonable bounds, what this package is not intended to allow users to
accomplish. </para></listitem>
<listitem><para> The application domains where this package is most likely to be of use. </para></listitem>
<listitem><para> A high-level overview of how the package meets its
requirements (which should have been documented elsewhere). This
is to include relevant material from the "features" section of the
cover sheet (the cover sheet is a wrapper doc with links to all
other package docs). </para></listitem>
</itemizedlist>
<para>
Also worthy of treatment in this section:
</para>
<itemizedlist>
<listitem><para> When applicable, a careful demarcation between the
functionality of this package and others which - at least
superficially - appear to address the same requirements. </para></listitem>
</itemizedlist>
<para>
Note: it's entirely possible that a discussion of what a package
is not intended to do differs from a discussion of future
improvements for the package.
</para>
</sect2>
<sect2 id="yourpackage-design-historical-consid">
<title>Historical Considerations</title>
<para>
For a given set of requirements, typically many possible
implementations and solutions exist. Although eventually only one
solution is implemented, a discussion of the alternative solutions
canvassed - noting why they were rejected - proves helpful to both
current and future developers. All readers would be reminded as to
why and how the particular solution developed over time, avoiding
re-analysis of problems already solved.
</para>
</sect2>
<sect2 id="yourpackage-design-competitive-analysis">
<title>Competitive Analysis</title>
<para>
Although currently only a few package documentation pages contain a
discussion of competing software, (e.g. chat, portals), this section
should be present whenever such competition exists.
</para>
<itemizedlist>
<listitem><para> If your package exhibits features missing from competing
software, this fact should be underscored. </para></listitem>
<listitem><para> If your package lacks features which are present in competing
software, the reasons for this should be discussed here; our sales
team needs to be ready for inquiries regarding features our software
lacks. </para></listitem>
</itemizedlist>
<para>
Note that such a discussion may differ from a discussion of a
package's potential future improvements.
</para>
</sect2>
<sect2 id="yourpackage-design-design-tradeoffs">
<title>Design Tradeoffs</title>
<para>
No single design solution can optimize every desirable software
attribute. For example, an increase in the security of a system will
likely entail a decrease in its ease-of-use, and an increase in the
flexibility/generality of a system typically entails a decrease in the
simplicity and efficiency of that system. Thus a developer must decide
to put a higher value on some attributes over others: this section
should include a discussion of the tradeoffs involved with the design
chosen, and the reasons for your choices. Some areas of importance to
keep in mind are:
</para>
<para>Areas of interest to users:</para>
<itemizedlist>
<listitem><para> Performance: availability and efficiency </para></listitem>
<listitem><para> Flexibility </para></listitem>
<listitem><para> Interoperability </para></listitem>
<listitem><para> Reliability and robustness </para></listitem>
<listitem><para> Usability </para></listitem>
</itemizedlist>
<para>Areas of interest to developers:</para>
<itemizedlist>
<listitem><para> Maintainability </para></listitem>
<listitem><para> Portability </para></listitem>
<listitem><para> Reusability </para></listitem>
<listitem><para> Testability </para></listitem>
</itemizedlist>
</sect2>
<sect2 id="yourpackage-design-api">
<title>API</title>
<para>
Here's where you discuss the abstractions used by your package, such
as the procedures encapsulating the legal transactions on the data
model. Explain the organization of procedures and their
particulars (detail above and beyond what is documented in the
code), including:
</para>
<itemizedlist>
<listitem><para> Problem-domain components: key algorithms, e.g. a specialized
statistics package would implement specific mathematical procedures. </para></listitem>
<listitem><para> User-interface components: e.g. HTML widgets that the package may need. </para></listitem>
<listitem><para> Data management components: procedures that provide a stable
interface to database objects and legal transactions - the latter
often correspond to tasks. </para></listitem>
</itemizedlist>
<para>
Remember that the correctness, completeness, and stability of the API
and interface are what experienced members of our audience are looking
for. This is a cultural shift for us at aD (as of mid-year 2000), in
that we've previously always looked at the data models as key, and
seldom spent much effort on the API (e.g. putting raw SQL in pages to
handle transactions, instead of encapsulating them via procedures).
Experience has taught us that we need to focus on the API for
maintainability of our systems in the face of constant change.
</para>
</sect2>
<sect2 id="yourpackage-design-data-model">
<title>Data Model Discussion</title>
<para>
The data model discussion should do more than merely display the SQL
code, since this information is already be available via a link in the
"essentials" section above. Instead, there should be a high-level
discussion of how your data model meets your solution requirements:
why the database entities were defined as they are, and what
transactions you expect to occur. (There may be some overlap with the
API section.) Here are some starting points:
</para>
<itemizedlist>
<listitem><para> The data model discussion should address the intended usage
of each entity (table, trigger, view, procedure, etc.) when this
information is not obvious from an inspection of the data model
itself. </para></listitem>
<listitem><para> If a core service or other subsystem is being used (e.g., the
new parties and groups, permissions, etc.) this should also be
mentioned. </para></listitem>
<listitem><para> Any default permissions should be identified herein. </para></listitem>
<listitem><para> Discuss any data model extensions which tie into other
packages. </para></listitem>
<listitem><para><emphasis role="strong">Transactions</emphasis></para>
<para> Discuss modifications which the database may undergo from
your package. Consider grouping legal transactions according to
the invoking user class, i.e. transactions by an OpenACS-admin, by
subsite-admin, by a user, by a developer, etc. </para></listitem>
</itemizedlist>
</sect2>
<sect2 id="yourpackage-design-ui">
<title>User Interface</title>
<para>
In this section, discuss user interface issues and pages to be built;
you can organize by the expected classes of users. These may include:
</para>
<itemizedlist>
<listitem><para> Developers</para></listitem>
<listitem><para> OpenACS administrators (previously known as site-wide administrators)</para></listitem>
<listitem><para> Subsite administrators</para></listitem>
<listitem><para> End users</para></listitem>
</itemizedlist>
<para>
You may want to include page mockups, site-maps, or other visual aids.
Ideally this section is informed by some prototyping you've done, to
establish the package's usability with the client and other interested
parties.
</para>
<para>
<emphasis>Note: In order that developer documentation be uniform across
different system documents, these users should herein be designated as
"the developer," "the OpenACS-admin," "the sub-admin," and "the user,"
respectively. </emphasis>
</para>
<para>
Finally, note that as our templating system becomes more entrenched
within the OpenACS, this section's details are likely to shift from UI
specifics to template interface specifics.
</para>
</sect2>
<sect2 id="yourpackage-design-config">
<title>Configuration/Parameters</title>
<para>
Under OpenACS &version;, parameters are set at two levels: at the global level by
the OpenACS-admin, and at the subsite level by a sub-admin. In this
section, list and discuss both levels of parameters.
</para>
</sect2>
<sect2 id="yourpackage-design-future">
<title>Future Improvements/Areas of Likely Change</title>
<para>
If the system presently lacks useful/desirable features, note details
here. You could also comment on non-functional improvements to the
package, such as usability.
</para>
<para>
Note that a careful treatment of the earlier "competitive analysis"
section can greatly facilitate the documenting of this section.
</para>
</sect2>
<sect2 id="yourpackage-design-authors">
<title>Authors</title>
<para>
Although a system's data model file often contains this information,
this isn't always the case. Furthermore, data model files often
undergo substantial revision, making it difficult to track down the
system creator. An additional complication: package documentation may
be authored by people not directly involved in coding. Thus to avoid
unnecessary confusion, include email links to the following roles as
they may apply:
</para>
<itemizedlist>
<listitem><para> System creator</para></listitem>
<listitem><para> System owner</para></listitem>
<listitem><para> Documentation author</para></listitem>
</itemizedlist>
</sect2>
<sect2 id="yourpackage-design-revision-history">
<title>Revision History</title>
<para>
<emphasis>The revision history table below is for this template - modify it
as needed for your actual design document. </emphasis>
</para>
<informaltable>
<tgroup cols="4">
<thead>
<row>
<entry>Document Revision #</entry>
<entry>Action Taken, Notes</entry>
<entry>When?</entry>
<entry>By Whom?</entry>
</row>
</thead>
<tbody>
<row>
<entry>0.3</entry>
<entry>Edited further, incorporated feedback from Michael Yoon</entry>
<entry>9/05/2000</entry>
<entry>Kai Wu</entry>
</row>
<row>
<entry>0.2</entry>
<entry>Edited</entry>
<entry>8/22/2000</entry>
<entry>Kai Wu</entry>
</row>
<row>
<entry>0.1</entry>
<entry>Creation</entry>
<entry>8/21/2000</entry>
<entry>Josh Finkler, Audrey McLoghlin</entry>
</row>
</tbody></tgroup></informaltable>
<para><phrase role="cvstag">($Id: design-template.xml,v 1.9 2017/08/07 23:47:54 gustafn Exp $)</phrase></para>
</sect2>
</sect1>