Sorry, I've been too concise and not helpful at all :-)
You mentioned how the web changes fast so I think the best skill is to learn the basics of programming and networking. For example HTTP doesn't really change much (ok HTTP/2 but it's the first in a long time) and knowing how it actually works will help you along the way.
But the real basic skill is to learn how to learn. If you spend 10-20-30-40 years of your life programming you'll learn and forget a lot of technologies probably but if you know how to pick up something new and relate it to what you already know you'll be fine.
I hope I'm making sense. It's a life skill, more than a programming skill.
Sorry, I've been too concise and not helpful at all :-)
You mentioned how the web changes fast so I think the best skill is to learn the basics of programming and networking. For example HTTP doesn't really change much (ok HTTP/2 but it's the first in a long time) and knowing how it actually works will help you along the way.
But the real basic skill is to learn how to learn. If you spend 10-20-30-40 years of your life programming you'll learn and forget a lot of technologies probably but if you know how to pick up something new and relate it to what you already know you'll be fine.
I hope I'm making sense. It's a life skill, more than a programming skill.
Thank you @rhymes .
How I understood was to go down one level below in abstraction (HTTP/2 or network protocol) and understand how something works.
and instead of worshiping cargos (cargo cult) finding out why and how something works (the basics).