2012 28th IEEE International Conference on Software Maintenance (ICSM) 2012
DOI: 10.1109/icsm.2012.6405258
|View full text |Cite
|
Sign up to set email alerts
|

The Order of Things: How developers sort fields and methods

Abstract: In source code files, fields and methods are arranged in linear order. Modern programming languages such as Java do not constrain this order-developers are free to choose any sequence. In this paper we examine the largely unexplored strategies developers apply for ordering fields and methods: First, we use visualization to explore different ordering criteria within two open source Java projects. Second, we verify our observations in a metric-based analysis on an extended set of 16 projects. Third, we present t… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1

Citation Types

0
3
0

Year Published

2015
2015
2019
2019

Publication Types

Select...
3
1

Relationship

0
4

Authors

Journals

citations
Cited by 4 publications
(3 citation statements)
references
References 10 publications
0
3
0
Order By: Relevance
“…Therefore, we looked for empirical results on the order of methods and fields in software systems. We found two: Biegel et al observed that in many cases, the code adheres to the structure specified in the Java Code Conventions published by Sun/Oracle, and that a clustering by visibility is also quite common [41]. They could also observe semantic clustering (by common key terms), whereas alphabetic order was rare.…”
Section: Empirical Findings On Real-world Code Structurementioning
confidence: 66%
“…Therefore, we looked for empirical results on the order of methods and fields in software systems. We found two: Biegel et al observed that in many cases, the code adheres to the structure specified in the Java Code Conventions published by Sun/Oracle, and that a clustering by visibility is also quite common [41]. They could also observe semantic clustering (by common key terms), whereas alphabetic order was rare.…”
Section: Empirical Findings On Real-world Code Structurementioning
confidence: 66%
“…They observe among other things a tendency that putting methods related by call-flow together increases efficiency of understanding, especially for less experienced participants, but their results did not reach statistical significance (Geffen and Maoz, 2016). Another study of code ordering, but without the inclusion of a controlled experiment, has been performed by Biegel et al (2012). Both of these studies are rather exploratory and lack our theoretical underpinning regarding optimal code ordering.…”
Section: Ordering Of Code Change Parts For Review Reading Techniquesmentioning
confidence: 99%
“…This may give theoretical value to the TDR practice. Code ordering and its relation to understanding, yet without explicit reference to tests or reviews, has also been the subject of studies [25], [12].…”
Section: Related Workmentioning
confidence: 99%