We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.SE

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Software Engineering

Title: Fluid Intelligence Doesn't Matter! Effects of Code Examples on the Usability of Crypto APIs

Abstract: Context: Programmers frequently look for the code of previously solved problems that they can adapt for their own problem. Despite existing example code on the web, on sites like Stack Overflow, cryptographic Application Programming Interfaces (APIs) are co monly misused. There is little known about what makes examples helpful for developers in using crypto APIs. Analogical problem solving is a psychological theory that investigates how people use known solutions to solve new problems. There is evidence that the capacity to reason and solve novel problems a.k.a Fluid Intelligence (Gf ) and structurally and procedurally similar solutions support problem solving. Aim: Our goal is to understand whether similarity and Gf also have an effect in the context of using cryptographic APIs with the help of code examples. Method: We conducted a controlled experiment with 76 student participants developing with or without procedurally similar examples, one of two Java crypto libraries and measured the Gf of the participants as well as the effect on usability (effectiveness, efficiency, satisfaction) and security bugs. Results: We observed a strong effect of code examples with a high procedural similarity on all dependent variables. Fluid intelligence Gf had no effect. It also made no difference which library the participants used. Conclusions: Example code must be more highly similar to a concrete solution, not very abstract and generic to have a positive effect in a development task.
Comments: 2 pages
Subjects: Software Engineering (cs.SE); Cryptography and Security (cs.CR)
ACM classes: D.2.3; E.3
Journal reference: In: 42nd International Conference on Software Engineering Companion (ICSE '20 Companion). ACM, 2020
DOI: 10.1145/3377812.3390892
Cite as: arXiv:2004.03973 [cs.SE]
  (or arXiv:2004.03973v1 [cs.SE] for this version)

Submission history

From: Stefan Wagner [view email]
[v1] Wed, 8 Apr 2020 12:37:00 GMT (55kb)

Link back to: arXiv, form interface, contact.