IDEAS home Printed from https://ideas.repec.org/a/abq/ijist1/v4y2022i3p683-695.html
   My bibliography  Save this article

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

Author

Listed:
  • Kashif Munawar

    (Department of Computer Science & Information Technology, University of Balochistan, Quetta, Pakistan)

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.

Suggested Citation

  • Kashif Munawar, 2022. "The Impact of Language Syntax on the Complexity of Programs: A Case Study of Java and Python," International Journal of Innovations in Science & Technology, 50sea, vol. 4(3), pages 683-695, June.
  • Handle: RePEc:abq:ijist1:v:4:y:2022:i:3:p:683-695
    as

    Download full text from publisher

    File URL: https://journal.50sea.com/index.php/IJIST/article/view/339/648
    Download Restriction: no

    File URL: https://journal.50sea.com/index.php/IJIST/article/view/339
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:abq:ijist1:v:4:y:2022:i:3:p:683-695. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Iqra Nazeer (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.