Categories of Source Code in Industrial Systems

被引:3
|
作者
Alves, Tiago L. [1 ,2 ]
机构
[1] Software Improvement Grp, Amsterdam, Netherlands
[2] Univ Minho, Braga, Portugal
关键词
Categorization; source code; software metrics; product measurement; industrial systems; analysis scope;
D O I
10.1109/ESEM.2011.42
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The categorization of source code artifacts affects how the overall product is measured and consequently how these measurements are interpreted. When measuring complexity, for instance, failing to distinguish test and generated code will affect complexity measurements possibly leading to an erroneous interpretation of the overall product complexity. Although categorization problems are known, there seems to be little attention given to this subject in the literature. In this paper, we introduce a categorization for source code artifacts and present an empirical study providing evidence of each category. Artifacts are divided into production and test code, and then these categories are sub-divided into manually-maintained, generated, library, and example code. By analyzing 80 Java and C# industrial systems, we have found evidence of the majority of categories. We show that in average production code only accounts for 60% of a product volume. Also, we have found that for some systems the overall percentage of test and generated code, each can account to over 70% and of library code to over 40%. Finally we discuss the difficulties of distinguishing source code artifacts and conclude with directions for further research.
引用
收藏
页码:335 / 342
页数:8
相关论文
共 50 条
  • [41] Removing Code Clones from Industrial Systems Using Compiler Directives
    Hatano, Tomomi
    Matsuo, Akihiko
    2017 IEEE/ACM 25TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2017, : 336 - 345
  • [42] Automatic Generation of the Supervisor Code for Industrial Switched-Mode Systems
    Iriondo, Nagore
    Estevez, Elisabet
    Marcos, Marga
    IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, 2013, 9 (04) : 1868 - 1878
  • [43] Practical experiences of applying source-level WCET flow analysis to industrial code
    Lisper B.
    Ermedahl A.
    Schreiner D.
    Knoop J.
    Gliwa P.
    International Journal on Software Tools for Technology Transfer, 2013, 15 (1) : 53 - 63
  • [44] Practical Experiences of Applying Source-Level WCET Flow Analysis on Industrial Code
    Lisper, Bjorn
    Ermedahl, Andreas
    Schreiner, Dietmar
    Knoop, Jens
    Gliwa, Peter
    LEVERAGING APPLICATIONS OF FORMAL METHODS, VERIFICATION, AND VALIDATION, PT II, 2010, 6416 : 449 - +
  • [45] A Review on Multicriteria Decision Support System and Industrial Internet of Things for Source Code Transformation
    Hao, Qinxia
    Nazir, Shah
    Gao, Xiaoxu
    Ma, Li
    Ilyas, Muhammad
    SCIENTIFIC PROGRAMMING, 2021, 2021
  • [46] Test Prioritization Based on the Coverage of Recently Modified Source Code: An Industrial Case Study
    Erol, Hande
    Sozer, Hasan
    TESTING SOFTWARE AND SYSTEMS, ICTSS 2024, 2025, 15383 : 46 - 59
  • [47] A Code of Industrial Law
    Kenyon, William S.
    ANNALS OF THE AMERICAN ACADEMY OF POLITICAL AND SOCIAL SCIENCE, 1924, 111 : 305 - 313
  • [48] DebCheck: Efficient Checking for Open Source Code Clones in Software Systems
    Cordy, James R.
    Roy, Chanchal K.
    2011 IEEE 19TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2011, : 217 - +
  • [49] A study and analysis of attacks by exploiting the source code against computer systems
    Badrulddin, Ahmed
    INTERNATIONAL JOURNAL OF NONLINEAR ANALYSIS AND APPLICATIONS, 2021, 12 : 415 - 424
  • [50] Measuring similarity of large software systems based on source code correspondence
    Yamamoto, T
    Matsushita, M
    Kamiya, T
    Inoue, K
    PRODUCT FOCUSED SOFTWARE PROCESS IMPROVEMENT, PROCEEDINGS, 2005, 3547 : 530 - 544