Spartan programming is a coding style which tries to minimize the elements of code, like in a laconic speech. In the context of code, the minimized elements of speech include lines, characters, arguments, nesting use of ifs and whiles, etc. The style is achieved by the process of repeated application of code transformation techniques, or refactoring operations, drawn from the spartan toolbox of tippers. Each tipper improves at least one of the code size metrics, without degrading any of the others. We present the unique look of spartan code, and the process of achieving it, including the three main kinds of tippers: structural, nominal, and modular. We do not make the case for the spartan style here, leaving the readers to find beauty or savageness in it. The evaluation part of this work gives evidence that the application of structural tippers contributes to the naturalness of software.
Gil, Y., Orru', M. (2017). Code spartanization: One rational approach for resolving religious style wars. In Proceedings of the ACM Symposium on Applied Computing (pp.1615-1622). Association for Computing Machinery [10.1145/3019612.3019748].
Code spartanization: One rational approach for resolving religious style wars
ORRU', MATTEO
2017
Abstract
Spartan programming is a coding style which tries to minimize the elements of code, like in a laconic speech. In the context of code, the minimized elements of speech include lines, characters, arguments, nesting use of ifs and whiles, etc. The style is achieved by the process of repeated application of code transformation techniques, or refactoring operations, drawn from the spartan toolbox of tippers. Each tipper improves at least one of the code size metrics, without degrading any of the others. We present the unique look of spartan code, and the process of achieving it, including the three main kinds of tippers: structural, nominal, and modular. We do not make the case for the spartan style here, leaving the readers to find beauty or savageness in it. The evaluation part of this work gives evidence that the application of structural tippers contributes to the naturalness of software.File | Dimensione | Formato | |
---|---|---|---|
code-spartanization.pdf
Solo gestori archivio
Descrizione: Code Spartanization: one rational approach for resolving religious style wars
Tipologia di allegato:
Author’s Accepted Manuscript, AAM (Post-print)
Dimensione
619.35 kB
Formato
Adobe PDF
|
619.35 kB | Adobe PDF | Visualizza/Apri Richiedi una copia |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.