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

Research output: Contribution to journalResearch articleContributedpeer-review

Contributors

  • Johannes Roth - , Max Planck Institute for Human Cognitive and Brain Sciences, Justus Liebig University Giessen (Author)
  • Yunyan Duan - , Technische Universität Darmstadt (Author)
  • Florian P. Mahner - , Max Planck Institute for Human Cognitive and Brain Sciences, Donders Institute for Brain, Cognition and Behaviour (Author)
  • Philipp Kaniuth - , Max Planck Institute for Human Cognitive and Brain Sciences, Justus Liebig University Giessen (Author)
  • Thomas Wallis - , Technische Universität Darmstadt, Center for Mind, Brain and Behavior (CMBB) (Author)
  • Martin N. Hebart - , Max Planck Institute for Human Cognitive and Brain Sciences, Justus Liebig University Giessen, Center for Mind, Brain and Behavior (CMBB) (Author)

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

Original languageEnglish
Article number62
JournalCommunications psychology
Volume3
Issue number1
Publication statusPublished - 15 Apr 2025
Peer-reviewedYes
Externally publishedYes

External IDs

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