Speaking as an undergraduate student in a computer science department, I can confirm your observation. I have also observed that while coding, the philosophical pumps start working and good—or at least interesting—ideas about other subjects are often produced. The most interesting off-topic conversations I have had with other students in any class have been had in computer science classes.
I have also noticed that my ability to deal with mathematical problems that are generally algorithmic mentally has been improving rapidly. I suspect the regular practice of holding a process in one’s mind while encoding it is related to this.
Speaking as an undergraduate student in a computer science department, I can confirm your observation. I have also observed that while coding, the philosophical pumps start working and good—or at least interesting—ideas about other subjects are often produced. The most interesting off-topic conversations I have had with other students in any class have been had in computer science classes.
I have also noticed that my ability to deal with mathematical problems that are generally algorithmic mentally has been improving rapidly. I suspect the regular practice of holding a process in one’s mind while encoding it is related to this.