Investigation of Class Syntax Usage in Small JavaScript Projects

Bibliographic Information

Other Title
  • 小規模JavaScriptプロジェクトにおけるclass構文の使用実態の調査

Description

<p>In this paper, we analyze small JavaScript projects on GitHub in recent years to investigate the prevalence of the class syntax in JavaScript. JavaScript is originally a prototype-based object-oriented language; however, since 2015, class has been introduced as a syntax-sugar, enabling the class-based programming style. The results of our analysis showed that 25% of the projects defined classes, while only 14.3% of the projects used instantiation of objects (functions and object literals) other than the classes defined in the program, indicating that class-based rather than prototype-based programming is used. These results suggest that it is desirable to extend the language specification to make classes easier to use and to provide libraries as classes in the future.</p>

Journal

Details 詳細情報について

  • CRID
    1390863252063017856
  • DOI
    10.11309/fose.30.0_105
  • ISSN
    2436634X
  • Text Lang
    ja
  • Data Source
    • JaLC
  • Abstract License Flag
    Allowed

Report a problem

Back to top