I want an idiom for this situation.
If a brilliant programmer worked with a group of mediocre programmers for quite a long time, he would eventually become a bad programmer (with/without his knowledge)
I have found the following in google resutls
One bad apple spoils the whole bunch
But i need something like One good apple is spoiled by many bad apples
good apple should not be mixed with bad apples