When you feel it’s enough repeating same errors at the same place, you will try to learn from those lessons, trying to figure some rules to follow, which enable you to avoid those mistake from happening again. That’s how “Best Practice” comes. There are so many books about them. For some experienced programmers, they try not to make those mistakes even for once. But there are still some who would argue with you. When you try to convince them not to hard code, they say they can finish the job faster. It’s hard to make your case since they do finish the job in less time.
So I think we should have some sort of course or workshop. We deliberately arrange some scenarios in which programmers would violate those best practice. And let them go through the pain themselves. That might help them understand the importance of best practice, converting the reading experience into a personal one.