Migrating cascading style sheets to preprocessors by introducing mixins

作者: Davood Mazinanian , Nikolaos Tsantalis

DOI: 10.1145/2970276.2970348

关键词:

摘要: Cascading Style Sheets (CSS) is the standard language for styling web documents and extensively used in industry. However, CSS lacks constructs that would allow code reuse (e.g., functions). Consequently, maintaining often a cumbersome error-prone task. Preprocessors Less Sass) have been introduced to fill this gap, by extending with missing constructs. Despite clear maintainability benefits coming from use of preprocessors, there currently no support migrating legacy preprocessors. In paper, we propose technique automatically detecting duplicated style declarations can be migrated preprocessor functions (i.e., mixins). Our parameterize differences values declarations, ensure migration will not change presentation semantics documents. The evaluation has shown our able detect 98% mix-ins professional developers websites Sheet libraries, safely migrate real code.

参考文章(36)
Massimiliano Di Penta, Umberto Villano, Gerardo Casazza, Francesco Caprio, Clone Analysis in the Web Era: an Approach to Identify Cloned Web Pages Proceedings of the International Workshop of Empirical Studies on Software Maintenance - November 2001 - Florence - Italy. pp. 107- 113 ,(2001)
James R. Cordy, Thomas R. Dean, Nikita Synytskyy, Practical language-independent detection of near-miss clones conference of the centre for advanced studies on collaborative research. pp. 1- 12 ,(2004)
William F. Opdyke, Refactoring object-oriented frameworks PhD thesis, University of Illinois at Urbana-Champaign. ,(1992)
Fabio Calefato, Filippo Lanubile, Teresa Mallardo, Function clone detection in web applications: a semiautomated approach Journal of Web Engineering. ,vol. 3, pp. 3- 21 ,(2004)
Sonal Mahajan, William G. J. Halfond, WebSee: A Tool for Debugging HTML Presentation Failures 2015 IEEE 8th International Conference on Software Testing, Verification and Validation (ICST). pp. 1- 8 ,(2015) , 10.1109/ICST.2015.7102638
Vipin Kumar, Pang-Ning Tan, Michael M. Steinbach, Introduction to Data Mining ,(2013)
G.A. Di Lucca, M. Di Penta, A.R. Fasolino, An approach to identify duplicated web pages computer software and applications conference. pp. 481- 486 ,(2002) , 10.1109/CMPSAC.2002.1045051
A. De Lucia, R. Francese, G. Scanniello, G. Tortora, Understanding Cloned Patterns in Web Applications 13th International Workshop on Program Comprehension (IWPC'05). pp. 333- 336 ,(2005) , 10.1109/WPC.2005.42
Pang-Ning Tan, Vipin Kumar, Michael Steinbach, Introduction to Data Mining, (First Edition) Addison-Wesley Longman Publishing Co., Inc.. ,(2005)
Matthias Keller, Martin Nussbaumer, CSS Code Quality: A Metric for Abstractness; Or Why Humans Beat Machines in CSS Coding quality of information and communications technology. pp. 116- 121 ,(2010) , 10.1109/QUATIC.2010.25