But in context: a coworker needs a piece of information. You are there. You have the information. Asking you saves them 30 minutes. Should they interrupt you?
What if it's 5 minutes? What if it's 15? What is the level of urgency on their end? Is there pedagogical value in them figuring this out without you?
Ultimately interruptions have varying degrees of necessity, and we should be evaluating a team's interruptions as a whole. "Turn off all notifications" might indeed be the proper baseline, but at the end of the day the real thing is team interaction. Is the problem interruptions? Or is it role distribution? Is it knowledge sharing?
It's very easy in a context free situation to apply blanket statements but there's so much nuance to these interactions that I have a hard time establishing any sort of blanket rule. But at the end of the day, people's norms are different, so something needs to be said. "Don't talk to your coworkers" just rubs me the wrong way. It is definitely what is said to many teams who interact with programmers, though.