The Influence of Environmental Odors on Student Programmers During Code Comprehension and Code Writing
Open Access
- 26 June 2026
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
Abstract
Optimizing productivity is a longstanding goal in Software Engineering (SE). From models of development to IDE tools, researchers have investigated the factors that help or hinder programmers. One research avenue has examined nonfunctional factors like interruptions and environmental noise. Odor is a pervasive but unstudied factor in SE, with implications for workplace design, management, and assistive technology. To test odor's influence on programming tasks, we conducted a rigorously controlled study using eye tracking to measure participants’ cognitive processes during code writing and comprehension questions. Thirty student programmers were split into three groups exposed to different odors: Lemon (pleasant), Neutral, and Fish (unpleasant). Unaware of the odor manipulation, participants answered code comprehension, code writing, and prose comprehension questions while their gaze was recorded. We found that Lemon may have helped participants finish code comprehension questions more quickly (25.9% faster than Fish, \(p<0.05\) ; 7% faster than Neutral, \(p=0.1\) ). For code writing, both Fish and Lemon appeared to affect performance, with significantly higher visual effort than Neutral (longer fixation durations, \(p<0.05\) ). Our study offers a unique perspective on environmental factors in SE, suggesting pleasant odor may aid code comprehension, while no odor may be best for code writing.
Keywords
This publication has 45 references indexed in Scilit:
- Intermittent essential oil diffusion in learning spaces: Exploring olfactory responses and cognitive effectsBuilding and Environment, 2024
- Use and misuse of corrections for multiple testingMethods in Psychology, 2023
- A practical guide on conducting eye tracking studies in software engineeringEmpirical Software Engineering, 2020
- Breath Odors2020
- Rethinking Productivity in Software Engineering2019
- Four commentaries on the use of students and professionals in empirical software engineering experimentsEmpirical Software Engineering, 2018
- The impact of indoor environmental quality on work productivity in university open-plan research officesBuilding and Environment, 2017
- Something smells fishy: Olfactory suspicion cues improve performance on the Moses illusion and Wason rule discovery taskJournal of Experimental Social Psychology, 2015
- A revised limbic system model for memory, emotion and behaviourNeuroscience & Biobehavioral Reviews, 2013
- Development and validation of brief measures of positive and negative affect: The PANAS scales.Journal of Personality and Social Psychology, 1988