Working dogs are trained to deal with distractions and you deliberately include them in their training. With herding dogs, you're basically channeling their natural prey instinct into something productive. There's a lot of distractions in my yard, including fresh chicken (I feed my dogs a raw diet so they smell dinner all day long) and they never get distracted when they're moving the goats. When they're pups, until they're about a year old, they have to be on a leash because they like to play with living things until somebody dies but otherwise they know what they're not supposed to do. Working dogs thrive on having jobs.
Cindie