Overcoming the Mental Set Effect in Programming Problem Solving

07/13/2023
by   Agnia Sergeyuk, et al.
0

This paper adopts a cognitive psychology perspective to investigate the recurring mistakes in code resulting from the mental set (Einstellung) effect. The Einstellung effect is the tendency to approach problem-solving with a preconceived mindset, often overlooking better solutions that may be available. This effect can significantly impact creative thinking, as the development of patterns of thought can hinder the emergence of novel and creative ideas. Our study aims to test the Einstellung effect and the two mechanisms of its overcoming in the field of programming. The first intervention was the change of the color scheme of the code editor to the less habitual one. The second intervention was a combination of instruction to "forget the previous solutions and tasks" and the change in the color scheme. During the experiment, participants were given two sets of four programming tasks. Each task had two possible solutions: one using suboptimal code dictated by the mental set, and the other using a less familiar but more efficient and recommended methodology. Between the sets, participants either received no treatment or one of two interventions aimed at helping them overcome the mental set. The results of our experiment suggest that the tested techniques were insufficient to support overcoming the mental set, which we attribute to the specificity of the programming domain. The study contributes to the existing literature by providing insights into creativity support during problem-solving in software development and offering a framework for experimental research in this field.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/30/2023

Thought Bubbles: A Proxy into Players' Mental Model Development

Studying mental models has recently received more attention, aiming to u...
research
04/15/2022

Investigating the Impact of Forgetting in Software Development

Context: Forgetting is defined as a gradual process of losing informatio...
research
02/09/2022

Less is More: Supporting Developers in Vulnerability Detection during Code Review

Reviewing source code from a security perspective has proven to be a dif...
research
12/15/2022

Synthesizing Research on Programmers' Mental Models of Programs, Tasks and Concepts – a Systematic Literature Review

Programmers' mental models represent their knowledge and understanding o...
research
04/08/2020

Fluid Intelligence Doesn't Matter! Effects of Code Examples on the Usability of Crypto APIs

Context: Programmers frequently look for the code of previously solved p...
research
02/24/2021

Relating Reading, Visualization, and Coding for New Programmers: A Neuroimaging Study

Understanding how novices reason about coding at a neurological level ha...

Please sign up or login with your details

Forgot password? Click here to reset