Skip to main content
QUICK REVIEW

[Paper Review] The Case for API Communicability Evaluation: Introducing API-SI with Examples from Keras

Luiz Marques Afonso, João Antonio Marcondes Dutra Bastos|arXiv (Cornell University)|Aug 17, 2018
Software Engineering ResearchComputer Science24 references4 citations
TL;DR

This paper introduces API-SI, a semiotic evaluation method that assesses how effectively APIs communicate design intent through signs in their structure, behavior, and documentation. Applied to Keras, API-SI reveals how implicit and explicit signs influence developer understanding, offering a practical tool for improving API communicability and complementing traditional usability studies in software engineering.

ABSTRACT

In addition to their vital role in professional software development, Application Programming Interfaces (APIs) are now increasingly used by non-professional programmers, including end users, scientists and experts from other domains. Therefore, good APIs must meet old and new user requirements. Most of the re-search on API evaluation and design derives from user-centered, cognitive perspectives on human-computer interaction. As an alternative, we present a lower-threshold variant of a previously proposed semiotic API evaluation tool. We illustrate the procedures and power of this variant, called API Signification Inspection (API-SI), with Keras, a Deep Learning API. The illustration also shows how the method can complement and fertilize API usability studies. Additionally, API-SI is packaged as an introductory semiotic tool that API designers and researchers can use to evaluate the communication of design intent and product rationale to other programmers through implicit and explicit signs thereof, encountered in the API structure, behavior and documentation.

Motivation & Objective

  • To address the growing need for APIs that are understandable not only to professional developers but also to non-professionals such as scientists and domain experts.
  • To propose a lower-threshold variant of semiotic API evaluation that focuses on communicability of design intent through signs in API structure, behavior, and documentation.
  • To provide a practical, accessible tool for API designers and researchers to evaluate how well APIs convey their rationale and intent.
  • To demonstrate how semiotic analysis can complement and enrich traditional usability and cognitive-based API evaluation approaches.

Proposed method

  • API-SI applies semiotic theory to analyze explicit and implicit signs in APIs, focusing on how design decisions are communicated to developers.
  • The method evaluates three dimensions: the structural signs (e.g., class and method names), behavioral signs (e.g., method behavior and return types), and documentation signs (e.g., comments and examples).
  • It uses a structured inspection process where evaluators interpret signs based on their signification—what they suggest or imply about the API’s purpose and design.
  • The approach is grounded in Peircean semiotics, distinguishing between icons (resemblance), indices (causal connection), and symbols (convention-based meaning).
  • API-SI is designed as an introductory tool, enabling non-experts in semiotics to apply it systematically in API evaluation.
  • The method is validated through a case study on Keras, a deep learning API, to illustrate its practical application and insights.

Experimental results

Research questions

  • RQ1How effectively do API signs communicate design intent and product rationale to developers?
  • RQ2To what extent can semiotic analysis reveal hidden or implicit design decisions in API structure and behavior?
  • RQ3How does API-SI compare to or complement existing usability and cognitive-based API evaluation methods?
  • RQ4Can API-SI be applied consistently and meaningfully by non-experts in semiotics to real-world APIs like Keras?
  • RQ5What specific signs in Keras’s API structure, behavior, and documentation contribute to or hinder communicability?

Key findings

  • API-SI successfully identifies how specific naming conventions and method behaviors in Keras implicitly communicate design patterns and intent to developers.
  • The method reveals that certain method names in Keras, such as 'Dense' and 'Conv2D', function as iconic signs that visually suggest their functionality, enhancing discoverability.
  • Documentation signs, such as code examples and docstring clarity, were found to significantly influence the perceived communicability of Keras APIs.
  • The analysis exposed inconsistencies where behavioral signs (e.g., unexpected return types) contradicted structural signs, leading to confusion.
  • API-SI demonstrated practical utility in uncovering subtle communication failures in APIs that traditional usability testing might miss.
  • The case study confirms that semiotic evaluation can provide actionable insights for improving API design beyond syntactic correctness or functional correctness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.