Earlier quoted context omitted.
I went to a smallish private university and in the first year, there were about 50 people who intended to go for a CS degree. By year 2, there were about a dozen left. Every single one that said 'I heard there were good jobs in it' was gone. CS and writing code is not like many different arenas in that if the homework takes you 8 hours to understand, then it takes you 8 hours to understand. If you don't understand it…
Math has the concept of non-compiling code: a proof that is wrong. You get partial credit if you get early steps right, and more if latter steps are right. The idea that code that doesn't compile is not worth partial credit is wrong in academics. In the real world the code needs to compile first, of course, then run. However if your professors cannot look at your code that doesn't compiler and decide how much partial…
Generally the task is not writing code, it is solving a specific problem and non-compiling code is a non-solution, not a partial one.