An Exploration of Cognitive Shifting in Writing Code

Forskningsoutput: Kapitel i bok/rapport/konferenshandlingKonferensbidragVetenskapligPeer review


Programming is considered a demanding task that requires focusing on detail at code level. Students learning to program need to learn to think like a programmer, which involves coming up with plans needed to solve problems, and they need to learn to write the code that corresponds to the plans that they have thought of. The use of multiple files creates additional overhead to the process, as part of the code is not visible to the student. If a student does not remember the contents of a particular file, she needs to consciously move from writing code in one file to reading code in another file. This conscious transition of attention from one location to another is known as cognitive shifting. Using key-level data collected from a programming exam, we analyze students' movements within files and between files, and relate these movements with students' performance in the course. Our results indicate that frequently moving from one file to another may lead to worse performance than more focused actions, but no such effect exists when analyzing movements within an individual file.
Titel på värdpublikationProceedings of the ACM Conference on Global Computing Education (CompEd '19)
Antal sidor7
UtgivningsortNew York, NY, USA
ISBN (elektroniskt)978-1-4503-6259-7
StatusPublicerad - 2019
MoE-publikationstypA4 Artikel i en konferenspublikation
EvenemangACM Global Computing Education Conference: CompEd '19 - Chengdu, Kina
Varaktighet: 17 maj 201919 maj 2019
Konferensnummer: 1


  • 516 Pedagogik
  • 113 Data- och informationsvetenskap

Citera det här