Chapter 4 – Design
暂无分享,去创建一个
Publisher Summary
This chapter focuses on the techniques that result in elegant API design. It analyzes the various qualities that contribute to good API design and looks at standard design patterns that apply to the design of maintainable APIs. It puts all information together and covers the specifics of high-quality API design, from overall architecture planning down to class design and individual function calls. However, good design is worth little if the API doesn't give users the features they need. The chapter reviews the functional requirements to specify what an API should do and also specifically covers the creation of use cases and user stories as a way to describe the behavior of the API from the user's point of view. These different analysis techniques can be used individually or together, but they should always precede any attempt to design the API.