I can't stress enough how wrong this is. The majority of mediocre programmers will take anything written in a book as gospel. When their boss tells them to encrypt the customer data, there is a non negligible chance they will go straight to a cryptography section in a book they read and copy it.
That's true, but no book can cover everything about every topic. Even if they put the disclaimer that examples are not to be just copy&pasted, superficial people will still do exactly that. Because that's what superficial people do. And IMHO it's not up to book authors to fix the flows in human nature...
I can't stress enough how wrong this is. The majority of mediocre programmers will take anything written in a book as gospel. When their boss tells them to encrypt the customer data, there is a non negligible chance they will go straight to a cryptography section in a book they read and copy it.