克服编程问题解决中的心理定势效应
Overcoming the Mental Set Effect in Programming Problem Solving
AI总结:
本文通过两组编程任务实验,检验改变编辑器配色及结合“忘记先前方案”指令对克服Einstellung心理定势的作用,发现两种干预均不足,并提出相关实验研究框架。
摘要:
本文从认知心理学视角出发,研究由心理定势(Einstellung)效应导致的代码中反复出现的错误。Einstellung效应是指以先入为主的思维模式处理问题解决的倾向,往往会忽视可能存在的更优解决方案。该效应会显著影响创造性思维,因为思维模式的形成会阻碍新颖且有创意的想法产生。我们的研究旨在检验编程领域中的Einstellung效应以及克服该效应的两种机制。第一种干预措施是将代码编辑器的配色方案改为较不习惯的一种。第二种干预措施则结合了“忘记之前的解决方案和任务”的指令与配色方案的改变。在实验过程中,参与者被分配两组、各四项编程任务。每项任务都有两种可能的解决方案:一种使用由心理定势支配的次优代码,另一种使用较不熟悉但更高效且受推荐的方法。在两组任务之间,参与者要么不接受处理,要么接受两种旨在帮助其克服心理定势的干预措施之一。实验结果表明,所测试的技术不足以支持克服心理定势,我们将此归因于编程领域的特殊性。本研究通过为软件开发中问题解决时的创造力支持提供洞见,并为该领域的实验研究提供框架,为现有文献作出了贡献。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。