This doesn't surprise me really. When I was at university the programming textbooks we had were vile nasty and plainly incorrect. And those of us who dared challenge it by writing correct, robust code were penalised as the staff teaching it didn't understand the domain of what they were teaching properly and didn't have any real experience and assumed we were doing it wrong. We learned quickly to approach education with a high level of scepticism and get your info from more than one source (textbook) and find out which ones were reputable and which ones were garbage.
Basically there was a monolith in the middle of the course, a crap textbook, and monkeys were praying to it as the authority on everything.
Basically there was a monolith in the middle of the course, a crap textbook, and monkeys were praying to it as the authority on everything.