Technology
Topics |
Software Design DocumentSoftware design documentA guide and checklist to creating a high level software design for cost estimates Document purposeA software design document communicates the high level design of the software component of a solution for the following purposes:
The document is authored by the developers themselves, based on solution architecture, requirement, and data model documents, and existing information on machine and human interfaces, standards and best practices, and infrastructure. ContentsUse the following to guide the development of a software design document, or as a checklist Technical Design GoalsOutline of the technical manifestation of the system requirements, and list the goals the design is intended to achieve. Design ArchitectureDesign Architecture IntroductionShould contain details such as:
A block diagram of the modules and the relationships between them can be very useful. Try to point out the dynamic aspects even though this view is mostly static: include arrows to indicate flow of data and/or control, multiple boxes to indicate multiple instances of a thread or a module, etc. DataDescribe the persistent data, external data, and/or any other data important enough to justify a separate section. Such a section will not be needed when there isn't a central database, or any other bulk of permanent storage. Ensure data conventions such as naming standards, data domains, canonical models, and use of reference and master data are considered. Data IntroductionShould explain the need for a database, the considerations which led to the choice of a particular type of database; should contain a short description of the data stored in there, an estimate of the size and frequency of updates, some special considerations like security requirements, recovery, interfacing with external systems, report generation, etc. SchemaShould give a list of tables and columns in each table, a description of each of the following - data type, size, number of records, what data it keeps, which parts of the software read it and why, which parts of the software write it and when, an estimate of the update frequency. Should include at least a conceptual if not logical data model and data dictionary from the data modeller. File and Data FormatsMost systems deal with external data stored in files, the majority of these notably configuration files and imported or exported data files. The files should be listed, as well as which module reads/writes them, at what instances and for what purpose. This section should give a data dictionary at a minimum consisting of the name, or a detailed description, of the file formats. CommunicationWhenever modules communicate, be it using TCP/IP, REST, or some other protocol, this section should indicate the following:
CodeCode IntroductionMention any special considerations that led to this specific design, or that should be kept in mind while implementing it. Include general comments about the code in addition to notes that do not fit in any specific sub-section. ModulesA general description of each module and where it fits in the global picture. There should be a description of what each module is responsible for, what inputs it takes, where it takes these from, what format they are in, and what method it uses to take these inputs (TCP, read from a file, a pipe, direct function call…) The same description should appear for outputs: what outputs each module produces, where these outputs go, in what format, using what method. This section should also specify the following: what other modules each module uses and for what purpose; what non-trivial algorithm each module uses; what non-trivial data structures it uses and for what purpose. Internal FunctionsThis section should be repeated for each module description - a comprehensive listing of the module non-trivial internal functions (functions that are not part of any interface). Be sure to refer to each item mentioned below:
InterfacesEvery module must expose one or more interfaces. If these interfaces are not trivial and clear from the module descriptions, they should be listed and described in an orderly fashion at this point. This description should detail the purpose of each interface and in what context it can be used. It should also mention what kind of modules or objects expose it and which ones will be using it. If using the interface requires obtaining a reference to it, there should be an explanation of how such a reference is to be obtained and what information will be needed in order to do so. Following the description of the interface, there should come a list of the interface functions, referring to the very same items mentioned above (see section Internal Functions). It is advisable to add here a description of the scheme that will determine how the interfaces will evolve in future versions of the system in order to answer new requirements and modifications. If backward and forward compatibility is one of the requirements, explain how this scheme supports it. OperationDescribe issues related to how the system is supposed to operate once it has been implemented. User typesShould list the various types of users that will use the system (e.g., administrators, operators, managers, employees, customers...) Should also describe the user interface each user type would need to employ, and what prior knowledge and experience each type would require. Furthermore, this section should specify for each authenticated type/user which operations they may be allowed to perform, and which parts of the system, or data, would remain closed to them. Another important clarification should be the number of users the system may support and how many of them would be able to work concurrently. ScenariosShould describe a few typical scenarios of how the system works. For example, what happens in the system while a user logs in, gives a short sequence of typical commands and logs out - what data flows from which module to where, what triggers which actions, etc. If the system is not very simple, this description can make the difference between utterly confused and fully comprehending readers. InstallationExplain how the system is installed, who can perform the installation (i.e., does it require some special skills, or can it be done by anyone?), what resources are needed for a successful installation, what medium would be used for the installation (e.g., a CD, download modules over the Internet, etc.), what user interface would be used during the installation (e.g., a Unix shell script, a Windows-like install UI, etc.), whether or not the installation would require a serial number. An important detail to include here is whether or not you allow several installations to co-exist on the same machine or LAN. Upgrades / ReleasesDescribe the way the system would be upgraded to newer versions. It should also relate to the following questions:
UninstallThis section should describe the way the uninstall would be done, who would be authorized to perform it, what resources would be needed, what data would be left behind, and what would happen to that data when re-installing on a computer after an uninstall. Don't forget to consider the implications of your licensing scheme. DevelopmentLay out a plan for the development process. It can be quite complex if the project has modules that cannot be developed or tested before others are completed, or if it depends on the availability of external resources like developers, machines, access to special services or real-world objects, etc. For example, you may choose to start by developing a mock-up version of some module, in order to allow the development and testing of another. Once this is done, you can develop the two modules in parallel using two independent teams. Another common technique is to manually prepare a data file that will be used as the input to some module until the UI is mature enough to supply real data. The design should describe the necessary resources - number of developers, their required skills, the hardware, environment and development tools required for the development process. It should also say when and for how long each resource would be needed. This is the place to include development time estimates. Miscellanea / AppendicesConformance with standardsMust contain the lists of both the standards the system should conform to and the references as to where these standards may be obtained. Interoperability with other systemsMust contain the list of the external systems that the new system should interact with in addition to a description of the way in which it should do so. Testing and DebuggingMost of the development time will no doubt be spent on debugging. The larger the system, the more essential it becomes to have some built-in mechanism to help debug the complete system. It can be a mechanism of log files, or special functions in each interface, or a special mode in the UI. This section should describe your choice of mechanisms, the ways in which they would be used, and what the programmers should do in order to make their module part of the game. Describe Unit and regression testing, see for example A Unit Testing Walkthrough with Visual Studio Team Test(approve sites), Walkthrough: Creating and Running Unit Tests(approve sites), CsUnit(approve sites). Ensure special requirements for downstream testing, such as supporting date rolling, can be met. SecurityDescribe the security threats you foresee and intend to deal with. It should specify your assumptions regarding the environment (whether the computer is behind a firewall, who has physical access to it, etc.) and the means you plan to employ in order to protect the system (authentication, data encryption, input validation, internal sanity checks), etc. Open IssuesThere are always some issues left open. Sometimes information needed for making certain design decisions is not available in time or even at all. Sometimes decisions are delayed for a more convenient time. This section should list all the open issues in the design, and, if possible, point out what is required in order to resolve each one. EstimatesResource estimatesResource estimates should be based on the effort required to complete a task. Generally these will be in person-hours. Best practice is to break down any task that requires more than 15 hours into sub-tasks. Time estimatesTime estimates are made based on estimated effort, and resource availability, assume that internal resources can only achieve 5 to 6 hours daily on project tasks. Elapsed time must also be taken into account, for example waiting for signoff, or for external activities. Cost estimateCost estimates should be based on time estimates, and use a standard rate for the resource required. All assumptions must be stated. For
CostingProject cost and resource estimates should include provision for:
Out year costing for five years is required for:
See also
|
tahi Page last modified on 2011 Sept 20 08:50
Edit - History - Recent Changes - WikiHelp - Search - email page as link -> mailto:?Subject="KiwiWiki: Software Design Document"&Body=