Apparently my egotistical rantings about how you either are great at software programming or not was not just my ego talking. According to this PHD paper, a group of researchers have come up with pretty simple test that can weed out the (and I swear their PHD paper actually includes this line), "programming sheep from non-programming goats."
Basically, they decided that there are three models that people need to be able to conceptualize:
- assignment and sequence
- recursion / iteration
- concurrency
They claim that even good programmers have great difficultly getting a good model of concurrency (which I will attest is one of the most difficult concepts to wrap your head around in CS). But they also claim that simply testing students for a mental model of assignment and sequence before they ever see a single programming book is an excellent predictor of CS aptitude. For example, this is the very first question on their test:
Read the following statements and tick the box next to the correct answer.
int a = 10;
int b = 20;
a = b;
The new values of a and b are:
[ ] a = 20 b = 0
[ ] a = 20 b = 20
[ ] a = 0 b = 10
[ ] a = 10 b = 10
[ ] a = 30 b = 20
[ ] a = 30 b = 0
[ ] a = 10 b = 30
[ ] a = 0 b = 30
[ ] a = 10 b = 20
[ ] a = 20 b = 10
As someone who does this for a living, I have trouble believing anyone could get this wrong (the correct answer is (2) by the way). Yet when these UK researchers ran their students through a set of questions like this, fully 39% would fail the test. 39%! And weirdly the things you would expect to affect this, like overall intelligence, GPA, or access to computers has absolutely no effect on this number! Its almost like the good programmers are different not because we are smarter, but because we have a natural ability at creating consistent models of machine logic. Moreover, this number appeared to the researchers to be very difficult to move. Even after 3 weeks of tutoring, "there is very little movement from consistent to inconsistent". That is, either you have a consistent model of assignment, or it is very likely you will never have one!
Ok, all well and good so far. But it begs several questions
- If this really is a great predictor, would it be ethical to require it from freshmen CS?
- What if the school decided that this test would be their entrance criteria for beginning CS classes?
- Would your answer change if I pointed out that the test was not 100% accurate (It's more like 80%)?
- Given this information, is it fair that most engineering schools now require at least one programming class on all students? If we know that at least 30% of students are not wired to understand this stuff, is it fair to make Mechanical Engineers learn Java?