Complexity Metrics for Sassy Cascading Style Sheets

John Gichuki Ndia, G. M. Muketha, K. Omieno
{"title":"Complexity Metrics for Sassy Cascading Style Sheets","authors":"John Gichuki Ndia, G. M. Muketha, K. Omieno","doi":"10.22364/bjmc.2019.7.4.01","DOIUrl":null,"url":null,"abstract":"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.","PeriodicalId":431209,"journal":{"name":"Balt. J. Mod. Comput.","volume":"7 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Balt. J. Mod. Comput.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.22364/bjmc.2019.7.4.01","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

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.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
时髦层叠样式表的复杂性度量
许多前端web开发人员现在越来越多地使用时髦的级联样式表(SCSS)而不是常规的级联样式表(CSS)。尽管需求不断增加,但SCSS具有固有的复杂性,这源于其使用嵌套、继承、变量、操作符和函数等特性。此外,SCSS的复杂性,像所有其他软件一样,随着年龄的增长而不断增加。高复杂性是不可取的,因为它会导致软件难以理解、修改和测试。虽然已经提出了一些度量样式表复杂性的指标,但这些指标是在常规CSS上下文中定义的,由于语法的差异,不能用于度量SCSS。本文提出了四个衡量SCSS代码复杂性的指标。这些指标已经被用来计算三个代码片段和三个现实世界项目的复杂性,并且被发现是直观的。这些指标也使用Kaner框架进行了评估,并满足了所有评估问题,表明它们在行业中是足够实用的。此外,使用Weyuker的性质对指标进行了评估,结果表明,所有四个指标都满足九个性质中的七个,这意味着它们在理论上是合理的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
On the Accuracy of Edge Detectors in Number Plate Extraction Visual Diagrammatic Queries in ViziQuer: Overview and Implementation From Zero to Production: Baltic-Ukrainian Machine Translation Systems to Aid Refugees Similarity of Sentence Representations in Multilingual LMs: Resolving Conflicting Literature and a Case Study of Baltic Languages The Combinatorial Analysis of n-Gram Dictionaries, Coverage and Information Entropy based on the Web Corpus of English
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1