What Makes API Documentation Useful to New Developers?
Keywords:
API documentation; developer onboarding; program comprehension; information foraging; cognitive load; software usabilityAbstract
New developers often meet an API through documentation rather than through the design knowledge that produced it. Their difficulty is not merely missing text; it is a mismatch between the task they want to accomplish and the API’s behavioral contract: which calls produce an outcome, which preconditions and side effects matter, and how failure is signaled. This article develops an analytical model of documentation usefulness for developers new to an API. Usefulness is defined as expected task success net of search, working-memory, and reconciliation costs, with a separate construct for residual behavioral uncertainty. From this model, five design properties are derived: task-anchored entry points, executable and adaptable examples, contract transparency, failure-signature disclosure, and navigational cohesion. The analysis explains why adding content can reduce usefulness when it raises information-scent costs or fragments the API model across pages; why examples without contracts encourage fragile adaptation; and why reference completeness must be paired with progressive disclosure. It also proposes evaluation logic based on task-specific coverage, example transfer, and cost-sensitive decision rules rather than page counts or perceived satisfaction alone. The resulting framework connects software engineering accounts of API learning with information foraging, cognitive load, and comprehension research, and offers design propositions for documentation architecture.
References
1. Robillard, M. P. (2009). What makes APIs hard to learn? Answers from developers. IEEE Software, 26(6), 27–34.
2. Maalej, W., & Robillard, M. P. (2013). Patterns of knowledge in API reference documentation. IEEE Transactions on Software Engineering, 39(9), 1264–1282.
3. Myers, B. A., & Stylos, J. (2016). Improving API usability. Communications of the ACM, 59(6), 62–69.
4. Ko, A. J., Myers, B. A., Coblenz, M. J., & Aung, H. H. (2006). An exploratory study of how developers seek, relate, and collect relevant information during software maintenance tasks. IEEE Transactions on Software Engineering, 32(12), 971–987.
5. Sillito, J., Murphy, G. C., & De Volder, K. (2008). Asking and answering questions during a programming change task. IEEE Transactions on Software Engineering, 34(4), 434–451.
6. Pirolli, P., & Card, S. (1999). Information foraging. Psychological Review, 106(4), 643–675.
7. Stylos, J., & Myers, B. A. (2008). The implications of method placement on API learnability. In Proceedings of the 16th ACM SIGSOFT International Symposium on Foundations of Software Engineering (pp. 105–112). ACM.
8. Duala-Ekoko, E., & Robillard, M. P. (2012). Asking and answering questions about unfamiliar APIs: An exploratory study. In Proceedings of the 34th International Conference on Software Engineering (pp. 266–276). IEEE.
9. LaToza, T. D., & Myers, B. A. (2010). Developers ask reachability questions. In Proceedings of the 32nd ACM/IEEE International Conference on Software Engineering (Vol. 1, pp. 185–194). ACM.
10. Parnas, D. L. (1972). On the criteria to be used in decomposing systems into modules. Communications of the ACM, 15(12), 1053–1058.
11. Baeza-Yates, R., & Ribeiro-Neto, B. (2011). Modern information retrieval: The concepts and technology behind search (2nd ed.). Pearson.
12. Green, T. R. G. (1989). Cognitive dimensions of notations. In A. Sutcliffe & L. Macaulay (Eds.), People and computers V (pp. 443–460). Cambridge University Press.
13. Sweller, J., van Merriënboer, J. J. G., & Paas, F. G. W. C. (1998). Cognitive architecture and instructional design. Educational Psychology Review, 10(3), 251–296.
14. Uddin, G., & Robillard, M. P. (2015). How API documentation fails. IEEE Software, 32(4), 68–75.
15. Robillard, M. P., & DeLine, R. (2011). A field study of API learning obstacles. Empirical Software Engineering, 16(6), 703–732.
16. Naur, P. (1985). Programming as theory building. Microprocessing and Microprogramming, 15(5), 253–261.
17. Kintsch, W. (1998). Comprehension: A paradigm for cognition. Cambridge University Press.
18. Nielsen, J. (1993). Usability engineering. Morgan Kaufmann.
Downloads
Published
Issue
Section
License
Copyright (c) 2023 Computer Science and Engineering Transactions

This work is licensed under a Creative Commons Attribution 4.0 International License.
