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.
paper
Code conventions; Code style; Refactoring; Spartanization; Software
English
32nd Annual ACM Symposium on Applied Computing, SAC 2017
2017
Proceedings of the ACM Symposium on Applied Computing
9781450344869
2017
128005
1615
1622
128005
reserved
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].
File in questo prodotto:
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.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10281/204040
Citazioni
  • Scopus 2
  • ???jsp.display-item.citation.isi??? ND
Social impact