Websites are frequently used by programmers to support the development process. This paper investigates programmer-Web interactions when coding, and combines observations of behaviour with assessments of the resulting source code. We report on an online observational study with ten undergraduate student programmers as they engaged in programming tasks of varying complexity. Screens were recorded of participants' activities, and each participated in an interview. Videos and interviews were thematically analysed. Novice programmers employed various strategies for seeking and utilising online knowledge. The resulting source code was examined to determine the extent to which it met requirements and whether it contained errors. The source code analysis revealed that coding with the websites involved more coding time and effort, but increased the possibility of producing correct code. However, coding with websites also introduced instances of either incorrect or non-executable source code.
翻译:本文研究程序员编程时与网站的交互行为,并结合行为观察与源代码评估,探讨编程过程中网站的使用情况。我们开展了一项在线观察研究,邀请10位本科生程序员完成不同难度的编程任务。我们记录了参与者的活动屏幕,并对每位参与者进行了访谈。我们使用主题分析法对视频和访谈材料进行了分析。初学者程序员使用了多种策略来寻找和利用在线知识。源代码分析结果显示,与网站一起编程虽然增加了编程时间和精力投入,但也增加了生成正确代码的可能性。然而,使用网站编写代码也会导致源代码错误或非可执行状态的情况发生。