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. ...

Get API Design for C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.