Development of Auxiliary Functions: Should You Be Agile? An Empirical Assessment of Pair Programming and Test-First Programming

Nenhuma Miniatura disponível
Data
2012-01-01
Autores
Lemos, Otávio Augusto Lazzarini [UNIFESP]
Ferrari, Fabiano Cutigi
Silveira, Fabio Fagundes [UNIFESP]
Garcia, Alessandro
Orientadores
Tipo
Trabalho apresentado em evento
Título da Revista
ISSN da Revista
Título de Volume
Resumo
A considerable part of software systems is comprised of functions that support the main modules, such as array or string manipulation and basic math computation. These auxiliary functions are usually considered less complex, and thus tend to receive less attention from developers. However, failures in these functions might propagate to more critical modules, thereby affecting the system's overall reliability. Given the complementary role of auxiliary functions, a question that arises is whether agile practices, such as pair programming and test-first programming, can improve their correctness without affecting time-to-market. This paper presents an empirical assessment comparing the application of these agile practices with more traditional approaches. Our study comprises independent experiments of pair versus solo programming, and test-first versus test-last programming. The first study involved 85 novice programmers who applied both traditional and agile approaches in the development of six auxiliary functions within three different domains. Our results suggest that the agile practices might bring benefits in this context. In particular, pair programmers delivered correct implementations much more often, and test-first programming encouraged the production of larger and higher coverage test sets. On the downside, the main experiment showed that both practices significantly increase total development time. A replication of the test-first experiment with professional developers shows similar results.
Descrição
Citação
2012 34th International Conference On Software Engineering (icse). New York: Ieee, p. 529-539, 2012.