loading
Papers Papers/2022 Papers Papers/2022

Research.Publish.Connect.

Paper

Authors: Lukas Poos 1 ; Stefan Hanenberg 2 ; Stefan Gries 3 and Volker Gruhn 2

Affiliations: 1 Independent Researcher, Germany ; 2 University of Duisburg–Essen, Essen, Germany ; 3 codecentric AG, 42697 Solingen, Germany

Keyword(s): Programming Languages, Empirical Study, User Study.

Abstract: The programming language Rust introduces language constructs such as ownership rules and mutability whose effect is, that undesired side-effects can be detected by the compiler. However, it is relatively unknown what the effect of such constructs on developers is. The present work introduces an experiment, where Rust and Java code was given to ten participants. The code, that consisted of ten function calls, contained one function that performed an undesired side-effect which led to an error in the main function. The participants’ task was to identify the function that caused this effect. The experiment varied (in the Rust code) the number of calls where a parameter was passed as mutable (which is inherently the case in languages such as Java). Such variation had a strong (p < .001) and large (η 2p = .459) effect on participants. On average, it took the participants 29% more time to identify the function in Java. However, this number varied between -4.3% and 117%, depending on how ma ny parameters where passed as mutable. Altogether, the experiment gives evidence that an explicit passing of variables as mutable has a positive effect on developers under the experimental conditions. (More)

CC BY-NC-ND 4.0

Sign In Guest: Register as new SciTePress user now for free.

Sign In SciTePress user: please login.

PDF ImageMy Papers

You are not signed in, therefore limits apply to your IP address 216.73.216.157

In the current month:
Recent papers: 100 available of 100 total
2+ years older papers: 200 available of 200 total

Paper citation in several formats:
Poos, L., Hanenberg, S., Gries, S., Gruhn and V. (2025). A Controlled Experiment on the Effect of Ownership Rules and Mutability on Localizing Errors in Rust in Comparison to Java. In Proceedings of the 20th International Conference on Software Technologies - ICSOFT; ISBN 978-989-758-757-3; ISSN 2184-2833, SciTePress, pages 410-421. DOI: 10.5220/0013647500003964

@conference{icsoft25,
author={Lukas Poos and Stefan Hanenberg and Stefan Gries and Volker Gruhn},
title={A Controlled Experiment on the Effect of Ownership Rules and Mutability on Localizing Errors in Rust in Comparison to Java},
booktitle={Proceedings of the 20th International Conference on Software Technologies - ICSOFT},
year={2025},
pages={410-421},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0013647500003964},
isbn={978-989-758-757-3},
issn={2184-2833},
}

TY - CONF

JO - Proceedings of the 20th International Conference on Software Technologies - ICSOFT
TI - A Controlled Experiment on the Effect of Ownership Rules and Mutability on Localizing Errors in Rust in Comparison to Java
SN - 978-989-758-757-3
IS - 2184-2833
AU - Poos, L.
AU - Hanenberg, S.
AU - Gries, S.
AU - Gruhn, V.
PY - 2025
SP - 410
EP - 421
DO - 10.5220/0013647500003964
PB - SciTePress