语言语法对程序复杂性的影响:以Java和Python为例

Kashif Munawar, M. Naveed
{"title":"语言语法对程序复杂性的影响:以Java和Python为例","authors":"Kashif Munawar, M. Naveed","doi":"10.33411/ijist/2022040310","DOIUrl":null,"url":null,"abstract":"Programming is the cornerstone of computer science, yet it is difficult to learn and program. The syntax of a programming language is particularly challenging to comprehend, which makes learning arduous and affects the program's testability. There is currently no literature that definitively gives quantitative evidence about the effect of programming language complex syntax. The main purpose of this article was to examine the effects of programming syntax on the complexity of their source programs. During the study, 298 algorithms were selected and their implementations in Java and Python were analyzed with the cyclomatic complexity matrix. The results of the study show that Python's syntax is less complex than Java's, and thus coding in Python is more comprehensive and less difficult than Java coding. The Mann-Whitney U test was performed on the results of a statistical analysis that showed a significant difference between Java and Python, indicating that the syntax of a programming language has a major impact on program complexity. The novelty of this article lies in the formulation of new knowledge and study patterns that can be used primarily to compare and analyze other programming languages.","PeriodicalId":326014,"journal":{"name":"Vol 4 Issue 3","volume":"22 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-06-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"The Impact of Language Syntax on the Complexity of Programs: A Case Study of Java and Python\",\"authors\":\"Kashif Munawar, M. Naveed\",\"doi\":\"10.33411/ijist/2022040310\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Programming is the cornerstone of computer science, yet it is difficult to learn and program. The syntax of a programming language is particularly challenging to comprehend, which makes learning arduous and affects the program's testability. There is currently no literature that definitively gives quantitative evidence about the effect of programming language complex syntax. The main purpose of this article was to examine the effects of programming syntax on the complexity of their source programs. During the study, 298 algorithms were selected and their implementations in Java and Python were analyzed with the cyclomatic complexity matrix. The results of the study show that Python's syntax is less complex than Java's, and thus coding in Python is more comprehensive and less difficult than Java coding. The Mann-Whitney U test was performed on the results of a statistical analysis that showed a significant difference between Java and Python, indicating that the syntax of a programming language has a major impact on program complexity. The novelty of this article lies in the formulation of new knowledge and study patterns that can be used primarily to compare and analyze other programming languages.\",\"PeriodicalId\":326014,\"journal\":{\"name\":\"Vol 4 Issue 3\",\"volume\":\"22 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-06-30\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Vol 4 Issue 3\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.33411/ijist/2022040310\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Vol 4 Issue 3","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.33411/ijist/2022040310","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

摘要

编程是计算机科学的基石,但它很难学习和编程。编程语言的语法尤其难以理解,这使得学习变得困难,并影响程序的可测试性。目前还没有文献明确地给出关于编程语言复杂语法影响的定量证据。本文的主要目的是研究编程语法对源程序复杂性的影响。在研究过程中,选择了298种算法,并使用圈复杂度矩阵分析了它们在Java和Python中的实现。研究结果表明,Python的语法没有Java复杂,因此用Python编码比Java编码更全面,更容易。Mann-Whitney U测试是在统计分析结果上执行的,该结果显示Java和Python之间存在显著差异,表明编程语言的语法对程序复杂性有重大影响。本文的新颖之处在于提出了新的知识和学习模式,主要用于比较和分析其他编程语言。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
The Impact of Language Syntax on the Complexity of Programs: A Case Study of Java and Python
Programming is the cornerstone of computer science, yet it is difficult to learn and program. The syntax of a programming language is particularly challenging to comprehend, which makes learning arduous and affects the program's testability. There is currently no literature that definitively gives quantitative evidence about the effect of programming language complex syntax. The main purpose of this article was to examine the effects of programming syntax on the complexity of their source programs. During the study, 298 algorithms were selected and their implementations in Java and Python were analyzed with the cyclomatic complexity matrix. The results of the study show that Python's syntax is less complex than Java's, and thus coding in Python is more comprehensive and less difficult than Java coding. The Mann-Whitney U test was performed on the results of a statistical analysis that showed a significant difference between Java and Python, indicating that the syntax of a programming language has a major impact on program complexity. The novelty of this article lies in the formulation of new knowledge and study patterns that can be used primarily to compare and analyze other programming languages.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Hedonism and Repurchase: Determining Value for Money and Repurchase Intentions in Shopping Malls Inventory and Altitudinal Distribution of Plant Biodiversity Along the Nalter Expressway in Nalter Valley Gilgit Baltistan BCAS: A Blockchain Model for Collision Avoidance to Prevent Overtaking Accidents on Roads Monitoring of Cortisol Levels in Hog Deer with Varying Environment Exposure Computer Malware Classification, Factors, and Detection Techniques: A Systematic Literature Review (SLR)
×
引用
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