If you're just coding, there's a chance your job will get outsourced. The key is to become more than a coder.
I work for a mid-size internet startup, and I spend a fair bit of time coding. But my job goes well beyond that--both before and after. In other words, before we start a new project, I design and architect and plan the software. I look for potential pitfalls in our design. I make sure we design it so that if it catches on, we can scale it easily. We try to design our work to be easy to maintain and debug. I spend time fielding questions from users, which helps us identify bugs and places where our site isn't easy to use.
In short, I'd say maybe 15-20% of my time is spent coding. The value of a programmer isn't just in the ability to code. It's also in all those other things--the planning, the design, the foresight, etc. Without those, the coding would take a great deal more time and effort, with a poorer result.
What do I think of the "learn to code" movement? I have no problems with it--if kids (or adults) are exposed to it, they might just find that they have a proclivity for it.
I have heard the difference between someone how can "code" and someone who can code "well" argument before.
My question is.. is this just an ability that some are gifted with and the rest of us are screwed?
I think there are two factors that go into whether someone can "code well":
1) natural ability--Some people just have "the Knack"--as young Dilbert's pediatrician would put it. Programming just comes naturally to some people.
2) experience. I started work here about three years ago. The progress I have made in these three years has been (to me) astounding--not only have I increased my knowledge of programming in Java tremendously, there are tons of shortcuts, tips, tricks, hidden gems of knowledge, and intuition that multiply my ability to write code far beyond "x lines per day".