It's not just programming. I run into this with guitarists too. I mostly play for my own enjoyment, but I constantly run into guitarists who get off on treating beginners like crap. Even in music schools they do this, and for some weird reason they think that this is how you make students awesome.
Ultimately, these kinds of behaviors in teachers don't make better students, they just kill off the more fragile ones who might have been awesome with some help.