I'm a software manager and this isn't what happens in practice at all. The more comfortable they are, the sloppier and lazy their resulting code as they feel no pressure to take their work seriously. I can, and will, stand behind devs for hours to keep them determined and on-task.