Stefan Hanenberg
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Stefan Hanenberg has a total of 12 co-authors. Here are the top co-authors by number of shared publications:
Stefan Endrikat
University of Duisburg-Essen, Germany
2 shared publications- Volker Gruhn
University of Duisburg-Essen, Essen, Germany
2 shared publications - Andreas Stefik
University of Nevada, Las Vegas, Las Vegas, NV, USA
1 shared publication - Christian Schürhoff
paluno – the Ruhr Institute for Software Technology, University of Duisburg–Essen, Essen, Germany
1 shared publication Johannes Morzeck
1 shared publication- Johannes Morzeck
University of Duisburg–Essen, Essen, Germany
1 shared publication
Latest Publications
- Open Access
- 9 August 2024
- Published by Springer Nature in Empirical Software Engineering
- Vol. 29 (5) , 1-40
Indentation and reading time: a randomized control trial on the differences between generated indented and non-indented if-statements
Indentation is an old technique that emphasizes elements in source code using white spaces or tabs. But while this technique has been taught and applied for decades, evidence for its effectiveness is weak: up to 2022 relatively few experiments can be found – the present authors are only aware of one single experiment that revealed an effect of indentation and reported the effect size, but even in that experiment the effect of indentation was found to be weak. The situation changed recently, where an experiment was published that suddenly revealed a strong and large effect of indentation in control flows on reaction time. However, although the experiment provided an initial indication of a possible cause for the difference between indented and non-indented code (the length of the code that can be skipped in indented code), the evidence for this indicator was rather weak. The present paper presents a formal model on the differences in reading times (measured in terms of reaction times) between indented and non-indented code. Based on that model a controlled experiment on generated tasks was designed and executed on 27 participants (undergraduate students, PhD students, professionals). The experiment (again) confirms a strong (p < .001) and large ( $$\eta _{p}^{2}$$ = .198, $$\frac{M_{Non-Indented}}{M_{Indented}}$$ = 2.13) effect of indentation. Furthermore, it confirms that the larger the skippable code is, the larger is the difference between reading time of indented and non-indented code (p = .001, $$\eta _{p}^{2}$$ = .072). I.e., the experiment goes beyond the point “indented vs non-indented code” and explains the difference by revealing a factor that controls this difference. However, although the previous statements holds true for the whole sample in the experiment, this effect could only be shown for a subset of individual participants.- 9 August 2024
- Published by Springer Nature in Empirical Software Engineering
- Vol. 29 (5) , 1-40
Open AccessIndentation and reading time: a randomized control trial on the differences between generated indented and non-indented if-statements
Indentation is an old technique that emphasizes elements in source code using white spaces or tabs. But while this technique has been taught and applied for decades, evidence for its effectiveness is weak: up to 2022 relatively few experiments can be found – the present authors are only aware of one single experiment that revealed an effect of indentation and reported the effect size, but even in that experiment the effect of indentation was found to be weak. The situation changed recently, where an experiment was published that suddenly revealed a strong and large effect of indentation in control flows on reaction time. However, although the experiment provided an initial indication of a possible cause for the difference between indented and non-indented code (the length of the code that can be skipped in indented code), the evidence for this indicator was rather weak. The present paper presents a formal model on the differences in reading times (measured in terms of reaction times) between indented and non-indented code. Based on that model a controlled experiment on generated tasks was designed and executed on 27 participants (undergraduate students, PhD students, professionals). The experiment (again) confirms a strong (p < .001) and large ( $$\eta _{p}^{2}$$ = .198, $$\frac{M_{Non-Indented}}{M_{Indented}}$$ = 2.13) effect of indentation. Furthermore, it confirms that the larger the skippable code is, the larger is the difference between reading time of indented and non-indented code (p = .001, $$\eta _{p}^{2}$$ = .072). I.e., the experiment goes beyond the point “indented vs non-indented code” and explains the difference by revealing a factor that controls this difference. However, although the previous statements holds true for the whole sample in the experiment, this effect could only be shown for a subset of individual participants. - 25 November 2022
- Published by Springer Nature in Empirical Software Engineering
- Vol. 28 (1) , 1-29
An empirical study on a single company’s cost estimations of 338 software projects
- 25 November 2022
- Published by Springer Nature in Empirical Software Engineering
- Vol. 28 (1) , 1-29
An empirical study on a single company’s cost estimations of 338 software projects
- Open Access
- 20 December 2021
- Published by Springer Nature in Empirical Software Engineering
- Vol. 27 (2) , 1-39
Two N-of-1 self-trials on readability differences between anonymous inner classes (AICs) and lambda expressions (LEs) on Java code snippets
In Java, lambda expressions (LEs) were introduced at a time where the similar language construct anonymous inner class (AIC) already existed for years. But while LEs became quite popular in mainstream programming languages in general, their usability is hardly studied. From the Java perspective the need to study the relationship between LEs and AICs was and is quite obvious, because both language constructs co-exist. However, it is quite usual that new language constructs are introduced although they are not or hardly studied using scientific methods – and an often heard argument from programming language designers is that the effort or the costs for the application of the scientific method on language constructs is too high. The present paper contributes in two different ways. First, with respect to LEs in comparison to AICs, this paper presents two N-of-1 studies (i.e. randomized control trials executed on a single subject) where LEs and AICs are used as listeners in Java code. Both experiments had two similar and rather simple tasks (“count the number of parameters”, respectively “count the number of used parameters”) with the dependent variable being reaction time. The first experiment used the number of parameters, the second the number of used parameters as the controlled, independent variable (in addition to the technique LE and AIC). Other variables (LOC, etc.) were randomly generated within given boundaries. The main result of both experiments is that LEs without type annotations require less reading time (phs .2, reduction of reaction time of at most 35%). The results are based on 9,600 observations (one N-of-1 trial with eight replications). This gives evidence that the readability of LEs without type annotations improves the readability of code. However, the effect seems to be so small, that we do not expect this to have a larger impact on daily programming. Second, we see the contribution of this paper in the application of N-of-1 trials. Such experiments require relatively low effort in the data selection but still permit to analyze results in a non-subjective way using commonly accepted analysis techniques. Additionally, they permit to increase the number of selected data points in comparison to traditional multi–subject experiments. We think that researchers should take such experiments into account before planning and executing larger experiments.
- 20 December 2021
- Published by Springer Nature in Empirical Software Engineering
- Vol. 27 (2) , 1-39
Open AccessTwo N-of-1 self-trials on readability differences between anonymous inner classes (AICs) and lambda expressions (LEs) on Java code snippets
In Java, lambda expressions (LEs) were introduced at a time where the similar language construct anonymous inner class (AIC) already existed for years. But while LEs became quite popular in mainstream programming languages in general, their usability is hardly studied. From the Java perspective the need to study the relationship between LEs and AICs was and is quite obvious, because both language constructs co-exist. However, it is quite usual that new language constructs are introduced although they are not or hardly studied using scientific methods – and an often heard argument from programming language designers is that the effort or the costs for the application of the scientific method on language constructs is too high. The present paper contributes in two different ways. First, with respect to LEs in comparison to AICs, this paper presents two N-of-1 studies (i.e. randomized control trials executed on a single subject) where LEs and AICs are used as listeners in Java code. Both experiments had two similar and rather simple tasks (“count the number of parameters”, respectively “count the number of used parameters”) with the dependent variable being reaction time. The first experiment used the number of parameters, the second the number of used parameters as the controlled, independent variable (in addition to the technique LE and AIC). Other variables (LOC, etc.) were randomly generated within given boundaries. The main result of both experiments is that LEs without type annotations require less reading time (phs .2, reduction of reaction time of at most 35%). The results are based on 9,600 observations (one N-of-1 trial with eight replications). This gives evidence that the readability of LEs without type annotations improves the readability of code. However, the effect seems to be so small, that we do not expect this to have a larger impact on daily programming. Second, we see the contribution of this paper in the application of N-of-1 trials. Such experiments require relatively low effort in the data selection but still permit to analyze results in a non-subjective way using commonly accepted analysis techniques. Additionally, they permit to increase the number of selected data points in comparison to traditional multi–subject experiments. We think that researchers should take such experiments into account before planning and executing larger experiments.
- Open Access
- 31 May 2014
- Published by Association for Computing Machinery (ACM)
- p. 632-642
How do API documentation and static typing affect API usability?
- 31 May 2014
- Published by Association for Computing Machinery (ACM)
- p. 632-642
Open AccessHow do API documentation and static typing affect API usability?
- 1 April 2013
- Published by Elsevier in Information and Software Technology
- Vol. 55 (4) , 722-740
Aspect-orientation is a rewarding investment into future code changes – As long as the aspects hardly change
- 1 April 2013
- Published by Elsevier in Information and Software Technology
- Vol. 55 (4) , 722-740
Aspect-orientation is a rewarding investment into future code changes – As long as the aspects hardly change
- 2 September 2002
- Published by Springer Nature
- p. 507-520
Roles and Aspects: Similarities, Differences, and Synergetic Potential
- 2 September 2002
- Published by Springer Nature
- p. 507-520
Roles and Aspects: Similarities, Differences, and Synergetic Potential