An empirical study of goto in C code from github repositories
MetadataShow full item record
It is nearly 50 years since Dijkstra argued that goto obscures the flow of control in program execution and urged programmers to abandon the goto statement. While past research has shown that goto is still in use, little is known about whether goto is used in the unrestricted manner that Dijkstra feared, and if it is ‘harmful’ enough to be a part of a post-release bug. We, therefore, conduct a two part empirical study - (1) qualitatively analyze a statistically rep- resentative sample of 384 files from a population of almost 250K C programming language files collected from over 11K GitHub repositories and find that developers use goto in C files for error handling (80.21±5%) and cleaning up resources at the end of a procedure (40.36 ± 5%); and (2) quantitatively analyze the commit history from the release branches of six OSS projects and find that no goto statement was re- moved/modified in the post-release phase of four of the six projects. We conclude that developers limit themselves to using goto appropriately in most cases, and not in an unrestricted manner like Dijkstra feared, thus suggesting that goto does not appear to be harmful in practice.
Showing items related by title, author, creator and subject.
4th Workshop on Emotions and Personality in Personalized Systems (EMPIRE) 2016; Boston, MA, USA, September 16th, 2016, Proceedings Tkalcic M; De Carolis B; de Gemmis M; Kosir A (RWTH, 2016)This volume contains the papers presented at the 4th Workshop on Emotions and Personality in Personalized Systems (EMPIRE), hold as part of the 10th ACM Conference on Recommender System (RecSys), in Boston, MA, USA. ...
Business relationships and B2B communication in selected European agri-food chains – First empirical evidence Fischer CD; Hartmann M; Bavorova M; Hockmann H; Suvanto H; Viitaharju L; Leat P; Revoredo-Giha C; Henchion M; McGee C; Dybowski G; Kobuszynska M (2008)The roles of business relationships and B2B communication in selected European agri-food chains are analyzed. Using survey data from 1,026 farmers, food processors and retailers in two commodity sectors (meat and cereals) ...
Tkalčič M; De Carolis B; De Gemmis M; Odić A; Košir A (CEUR-WS.org, 2014)The EMPIRE workshop attempts to provide some answers to the growing interest of the user modeling research community on the role of human factors, especially personality and emotions, on various aspects of user modeling. ...