首页    期刊浏览 2024年11月27日 星期三
登录注册

文章基本信息

  • 标题:Complexity Metrics for Sassy Cascading Style Sheets
  • 本地全文:下载
  • 作者:John Gichuki Ndia ; Geoffrey Muchiri Muketha ; Kelvin Kabeti Omieno
  • 期刊名称:Baltic Journal of Modern Computing
  • 印刷版ISSN:2255-8942
  • 电子版ISSN:2255-8950
  • 出版年度:2019
  • 卷号:7
  • 期号:4
  • 页码:1-21
  • DOI:10.22364/bjmc.2019.7.4.01
  • 出版社:Vilnius University, University of Latvia, Latvia University of Agriculture, Institute of Mathematics and Informatics of University of Latvia
  • 摘要:Many front-end web developers are nowadays increasingly using sassy cascading stylesheets (SCSS) instead of the regular cascading style sheets (CSS). Despite its increased demand, SCSS has inherent complexity which arises from its features such as the use of nesting, inheritance, variables, operators, and functions. In addition, SCSS complexity, like all other software, continually increases with age. High complexity is undesirable because it leads to software that is difficult to understand, modify and test. Although there has been some metrics proposed to measure stylesheets complexity, these were defined in the context of regular CSS, and cannot be used to measure SCSS due to differences in their syntax. This paper proposes four metrics for measuring the complexity of SCSS code. The metrics have been used to calculate the complexity of three code snippets and three real-world projects and were found to be intuitional. The metrics were also evaluated using the Kaner framework and satisfied all the evaluation questions, indicating that they are sufficiently practical as required in the industry. In addition, the metrics were evaluated using Weyuker’s properties, and results show that all the four metrics satisfied seven out of the nine properties, implying that they are theoretically sound.
  • 关键词:SCSS; rule blocks; complexity; complexity metrics; theoretical validation
国家哲学社会科学文献中心版权所有