Skip to Main content Skip to Navigation
Conference papers

Empirical Study of Programming to an Interface

Abstract : A popular recommendation to programmers in object-oriented software is to "program to an interface, not an implementation" (PTI). Expected benefits include increased simplicity from abstraction, decreased dependency on implementations , and higher flexibility. Yet, interfaces must be immutable, excessive class hierarchies can be a form of complexity, and "speculative generality" is a known code smell. To advance the empirical knowledge of PTI, we conducted an empirical investigation that involves 126 Java projects on GitHub, aiming to measuring the decreased dependency benefits (in terms of cochange).
Document type :
Conference papers
Complete list of metadatas

Cited literature [18 references]  Display  Hide  Download

https://hal.inria.fr/hal-02353681
Contributor : Lse Lse <>
Submitted on : Thursday, November 7, 2019 - 1:57:05 PM
Last modification on : Tuesday, September 29, 2020 - 12:24:09 PM
Long-term archiving on: : Sunday, February 9, 2020 - 12:20:12 AM

File

Fuhrman 2019 19359.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : hal-02353681, version 1

Collections

Citation

Benoît Verhaeghe, Christopher Fuhrman, Latifa Guerrouj, Nicolas Anquetil, Stéphane Ducasse. Empirical Study of Programming to an Interface. Automated Software Engineering (ASE 2019), Nov 2019, San Diego, United States. ⟨hal-02353681⟩

Share

Metrics

Record views

64

Files downloads

399