Please do not recommend this reckless and often illegal behavior.
If walking in the street, one should walk with traffic when possible.
Drivers and other forms of traffic merging into traffic do not expect pedestrian traffic coming from the wrong direction.
Salmoning causes other dangers, too, for example, by making it difficult to impossible for traffic to avoid collisions by stopping.
Either guidance and some laws have changed since I last was educated on this topic or my memory is faulty.
Perhaps it’s about observing inattentive drivers before they present immediate danger or establishing eye contact?
In any case, I stand corrected on the legality of pedestrian salmoning, though I’m not convinced of its advisability.
If you work the field at an AutoX course, you'll know that it is quite possible to dodge them. The chances of dodging a car when paying attention are substantially higher than if one is not.
The point being, when possible, you should walk facing into traffic. I see people, often enough, walking in the road with traffic. Experienced walkers tend to know this.