Ten principles for reliable, efficient, and adaptable coding in psychology and cognitive neuroscience

Publikation: Beitrag in FachzeitschriftForschungsartikelBeigetragenBegutachtung

Beitragende

  • Johannes Roth - , Max-Planck-Institut für Kognitions- und Neurowissenschaften, Justus-Liebig-Universität Gießen (Autor:in)
  • Yunyan Duan - , Technische Universität Darmstadt (Autor:in)
  • Florian P. Mahner - , Max-Planck-Institut für Kognitions- und Neurowissenschaften, Donders Institute for Brain, Cognition and Behaviour (Autor:in)
  • Philipp Kaniuth - , Max-Planck-Institut für Kognitions- und Neurowissenschaften, Justus-Liebig-Universität Gießen (Autor:in)
  • Thomas Wallis - , Technische Universität Darmstadt, Center for Mind, Brain and Behavior (CMBB) (Autor:in)
  • Martin N. Hebart - , Max-Planck-Institut für Kognitions- und Neurowissenschaften, Justus-Liebig-Universität Gießen, Center for Mind, Brain and Behavior (CMBB) (Autor:in)

Abstract

Writing code is becoming essential for psychology and neuroscience research, supporting increasingly advanced experimental designs, processing of ever-larger datasets and easy reproduction of scientific results. Despite its critical role, coding remains challenging for many researchers, as it is typically not part of formal academic training. We present a range of practices tailored to different levels of programming experience, from beginners to advanced users. Our ten principles help researchers streamline and automate their projects, reduce human error, and improve the quality and reusability of their code. For principal investigators, we highlight the benefits of fostering a collaborative environment that values code sharing. Maintaining basic standards for code quality, reusability, and shareability is critical for increasing the trustworthiness and reliability of research in experimental psychology and cognitive neuroscience.

Details

OriginalspracheEnglisch
Aufsatznummer62
FachzeitschriftCommunications psychology
Jahrgang3
Ausgabenummer1
PublikationsstatusVeröffentlicht - 15 Apr. 2025
Peer-Review-StatusJa
Extern publiziertJa

Externe IDs

PubMed 40234662
Mendeley e20d4c4d-b559-3a14-b6e0-add6388492c7
unpaywall 10.1038/s44271-025-00236-3