You might be surprised. The teachers that taught you relevant things that you end up using over and over tend to be remembered in my experience.
Of course some courses lend themselves to imparting this information better than others, and if you end up in fields other than your major there may be less chances to find your learning useful.
But then you are evaluating class he was assigned to teach and its relevance to your career, not his teaching. I did not used whatever I learned about networking or cryptography much, but that does not mean those teachers were bad. Nor does it mean CS major should not contain those classes.
Of course some courses lend themselves to imparting this information better than others, and if you end up in fields other than your major there may be less chances to find your learning useful.