CC Note: Measure Twice, Cut Once: Upstream Prerequisites

 

The problem definition lays the foundation for the rest of the programming process

 

 

 

The penalty for failing to define the problem is that you can waste a lot of time solving the wrong problem. This is a double-barreled penalty because you also don't solve the right problem.

 

 

Without good requirements, you can have the right general problem but miss the mark on specific aspects of the problem

 

Requirements are like water. They're easier to build on when they're frozen.

 

It's fine to hope that once your customer has accepted a requirements document, no changes will be needed. On a typical project, however, the customer can't reliably describe what is needed before the code is written. The problem isn't that the customers are a lower life form. Just as the more you work with the project, the better you understand it, the more they work with it, the better they understand it. The development process helps customers better understand their own needs, and this is a major source of requirements changes (Curtis, Krasner, and Iscoe 1988; Jones 1998; Wiegers 2003). A plan to follow the requirements rigidly is actually a plan not to respond to your customer.

 

 

Checklist: Requirements

cc2e.com/0323

The requirements checklist contains a list of questions to ask yourself about your project's requirements. This book doesn't tell you how to do good requirements development, and the list won't tell you how to do one either. Use the list as a sanity check at construction time to determine how solid the ground that you're standing on is—where you are on the requirements Richter scale.

Not all of the checklist questions will apply to your project. If you're working on an informal project, you'll find some that you don't even need to think about. You'll find others that you need to think about but don't need to answer formally. If you're working on a large, formal project, however, you may need to consider every one.

Specific Functional Requirements

  • Are all the inputs to the system specified, including their source, accuracy, range of values, and frequency?

  • Are all the outputs from the system specified, including their destination, accuracy, range of values, frequency, and format?

  • Are all output formats specified for Web pages, reports, and so on?

  • Are all the external hardware and software interfaces specified?

  • Are all the external communication interfaces specified, including handshaking, error-checking, and communication protocols?

  • Are all the tasks the user wants to perform specified?

  • Is the data used in each task and the data resulting from each task specified?

Specific Nonfunctional (Quality) Requirements

  • Is the expected response time, from the user's point of view, specified for all necessary operations?

  • Are other timing considerations specified, such as processing time, datatransfer rate, and system throughput?

  • Is the level of security specified?

  • Is the reliability specified, including the consequences of software failure, the vital information that needs to be protected from failure, and the strategy for error detection and recovery?

  • Are minimum machine memory and free disk space specified?

  • Is the maintainability of the system specified, including its ability to adapt to changes in specific functionality, changes in the operating environment, and changes in its interfaces with other software?

  • Is the definition of success included? Of failure?

Requirements Quality

  • Are the requirements written in the user's language? Do the users think so?

  • Does each requirement avoid conflicts with other requirements?

  • Are acceptable tradeoffs between competing attributes specified—for example, between robustness and correctness?

  • Do the requirements avoid specifying the design?

  • Are the requirements at a fairly consistent level of detail? Should any requirement be specified in more detail? Should any requirement be specified in less detail?

  • Are the requirements clear enough to be turned over to an independent group for construction and still be understood? Do the developers think so?

  • Is each item relevant to the problem and its solution? Can each item be traced to its origin in the problem environment?

  • Is each requirement testable? Will it be possible for independent testing to determine whether each requirement has been satisfied?

  • Are all possible changes to the requirements specified, including the likelihood of each change?

Requirements Completeness

  • Where information isn't available before development begins, are the areas of incompleteness specified?

  • Are the requirements complete in the sense that if the product satisfies every requirement, it will be acceptable?

  • Are you comfortable with all the requirements? Have you eliminated requirements that are impossible to implement and included just to appease your customer or your boss?

Checklist: Architecture

  • Program Organization
  • Major Classes
  • Data Design
  • Business Rules
  • User Interface Design
  • Resource Management
  • Security
  • Performance
  • Scalability
  • Interoperability
  • Internationalization/Localization
  • Input/Output
  • Error Processing

cc2e.com/0337

Here's a list of issues that a good architecture should address. The list isn't intended to be a comprehensive guide to architecture but to be a pragmatic way of evaluating the nutritional content of what you get at the programmer's end of the software food chain. Use this checklist as a starting point for your own checklist. As with the requirements checklist, if you're working on an informal project, you'll find some items that you don't even need to think about. If you're working on a larger project, most of the items will be useful.

Specific Architectural Topics

  • Is the overall organization of the program clear, including a good architectural overview and justification?

  • Are major building blocks well defined, including their areas of responsibility and their interfaces to other building blocks?

  • Are all the functions listed in the requirements covered sensibly, by neither too many nor too few building blocks?

  • Are the most critical classes described and justified?

  • Is the data design described and justified?

  • Is the database organization and content specified?

  • Are all key business rules identified and their impact on the system described?

  • Is a strategy for the user interface design described?

  • Is the user interface modularized so that changes in it won't affect the rest of the program?

  • Is a strategy for handling I/O described and justified?

  • Are resource-use estimates and a strategy for resource management described and justified for scarce resources like threads, database connections, handles, network bandwidth, and so on?

  • Are the architecture's security requirements described?

  • Does the architecture set space and speed budgets for each class, subsystem, or functionality area?

  • Does the architecture describe how scalability will be achieved?

  • Does the architecture address interoperability?

  • Is a strategy for internationalization/localization described?

  • Is a coherent error-handling strategy provided?

  • Is the approach to fault tolerance defined (if any is needed)?

  • Has technical feasibility of all parts of the system been established?

  • Is an approach to overengineering specified?

  • Are necessary buy-vs.-build decisions included?

  • Does the architecture describe how reused code will be made to conform to other architectural objectives?

  • Is the architecture designed to accommodate likely changes?

General Architectural Quality

  • Does the architecture account for all the requirements?

  • Is any part overarchitected or underarchitected? Are expectations in this area set out explicitly?

  • Does the whole architecture hang together conceptually?

  • Is the top-level design independent of the machine and language that will be used to implement it?

  • Are the motivations for all major decisions provided?

  • Are you, as a programmer who will implement the system, comfortable with the architecture?

     

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

FireCoder

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值