Fluid intelligence doesn't matter! effects of code examples on the usability of crypto APIs

Kai Mindermann, Stefan Wagner

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

4 Scopus citations

Abstract

Context: Programmers frequently look for the code of previouslysolved problems that they can adapt for their own problem. Despiteexisting example code on the web, on sites like Stack Overflow,cryptographic Application Programming Interfaces (APIs) are commonly misused. There is little known about what makes exampleshelpful for developers in using crypto APIs. Analogical problemsolving is a psychological theory that investigates how people useknown solutions to solve new problems. There is evidence that thecapacity to reason and solve novel problems a.k.a Fluid Intelligence(Gf ) and structurally and procedurally similar solutions supportproblem solving. Aim: Our goal is to understand whether similarityand Gf also have an effect in the context of using cryptographicAPIs with the help of code examples. Method: We conducted a controlled experiment with 76 student participants developing withor without procedurally similar examples, one of two Java cryptolibraries and measured the Gf of the participants as well as theeffect on usability (effectiveness, efficiency, satisfaction) and security bugs. Results: We observed a strong effect of code exampleswith a high procedural similarity on all dependent variables. Fluidintelligence Gf had no effect. It also made no difference whichlibrary the participants used. Conclusions: Example code must bemore highly similar to a concrete solution, not very abstract andgeneric to have a positive effect in a development task.

Original languageEnglish
Title of host publicationProceedings - 2020 ACM/IEEE 42nd International Conference on Software Engineering
Subtitle of host publicationCompanion Proceedings, ICSE-Companion 2020
PublisherIEEE Computer Society
Pages306-307
Number of pages2
ISBN (Electronic)9781450371223
DOIs
StatePublished - 27 Jun 2020
Externally publishedYes
Event42nd ACM/IEEE International Conference on Software Engineering, ICSE-Companion 2020 - Virtual, Online, Korea, Republic of
Duration: 27 Jun 202019 Jul 2020

Publication series

NameProceedings - International Conference on Software Engineering
ISSN (Print)0270-5257

Conference

Conference42nd ACM/IEEE International Conference on Software Engineering, ICSE-Companion 2020
Country/TerritoryKorea, Republic of
CityVirtual, Online
Period27/06/2019/07/20

Keywords

  • Example Code
  • Intelligence
  • Security
  • Usability

Fingerprint

Dive into the research topics of 'Fluid intelligence doesn't matter! effects of code examples on the usability of crypto APIs'. Together they form a unique fingerprint.

Cite this