I took a really shitty job so I could be close to someone in a country. I had it for almost two years. The job wasn't worth it. But the person in question was.. ten folds. Now, we're trying to settle down, but fixing the job/security situation.
That being said, I am always skeptical at things pointed out as job security.
Didn't we just go through a deep recession? Decent programmers in big cities had nothing to worry about!
Nothing is absolute, if our society collapses, then yeah, programmers might not have an easy time finding a decent job. Short of catastrophic problems, I think programmers are in good shape for a long time.
If I could suggest one thing for a young programmer to tattoo onto their inner arm, it would be that sentence right there.