EconPapers    
Economics at your fingertips  
 

The Impact of Language Syntax on the Complexity of Programs: A Case Study of Java and Python

Kashif Munawar ()
Additional contact information
Kashif Munawar: Department of Computer Science & Information Technology, University of Balochistan, Quetta, Pakistan

International Journal of Innovations in Science & Technology, 2022, vol. 4, issue 3, 683-695

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 effectsof 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.

Keywords: Cyclomatic Complexity; Programming Languages; Syntax; Java; Python (search for similar items in EconPapers)
Date: 2022
References: Add references at CitEc
Citations:

Downloads: (external link)
https://journal.50sea.com/index.php/IJIST/article/view/339/648 (application/pdf)
https://journal.50sea.com/index.php/IJIST/article/view/339 (text/html)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:abq:ijist1:v:4:y:2022:i:3:p:683-695

Access Statistics for this article

International Journal of Innovations in Science & Technology is currently edited by Prof. Dr. Syed Amer Mahmood

More articles in International Journal of Innovations in Science & Technology from 50sea
Bibliographic data for series maintained by Iqra Nazeer ().

 
Page updated 2025-10-05
Handle: RePEc:abq:ijist1:v:4:y:2022:i:3:p:683-695