Visible to the public  Structuring Documentation to Support State Search: A Laboratory Experiment about Protocol ProgrammingConflict Detection Enabled

Title Structuring Documentation to Support State Search: A Laboratory Experiment about Protocol Programming
Publication TypeConference Proceedings
Year of Publication2014
AuthorsJoshua Sunshine, James Herbsleb, Jonathan Aldrich
Conference NameProceedings of the 28th European Conference on ECOOP 2014 --- Object-Oriented Programming
Volume8586
Date Published08/2014
PublisherSpringer-Verlag New York, Inc. New York, NY, USA ©2014
Conference LocationUppsala, Sweden
ISBN Number978-3-662-44201-2
Abstract

Application Programming Interfaces APIs often define object protocols. Objects with protocols have a finite number of states and in each state a different set of method calls is valid. Many researchers have developed protocol verification tools because protocols are notoriously difficult to follow correctly. However, recent research suggests that a major challenge for API protocol programmers is effectively searching the state space. Verification is an ineffective guide for this kind of search. In this paper we instead propose Plaiddoc, which is like Javadoc except it organizes methods by state instead of by class and it includes explicit state transitions, state-based type specifications, and rich state relationships. We compare Plaiddoc to a Javadoc control in a between-subjects laboratory experiment. We find that Plaiddoc participants complete state search tasks in significantly less time and with significantly fewer errors than Javadoc participants.

DOI10.1007/978-3-662-44202-9_7
Citation Keynode-30266

Other available formats:

Sunshine_Structure_Documentation_JA.pdf
AttachmentTaxonomyKindSize
Sunshine_Structure_Documentation_JA.pdfPDF document575.5 KBDownloadPreview
AttachmentSize
bytes