What you mention seems more like (also common) advice to keep your skills sharp (for example, have a hobby project on Github in a different programming language) outside your professional job. It is a related but different advice than to go shopping around on job interviews.
I'm not sure how well this maps to the article but have heard this advice before. Of course, never having been married I can't speak of its efficacy.