Does the definition of “tech sector” broaden to essentially the entire economy? Hard to think of a large company that doesn’t have some kind of tech department outside of IT at this point. However, when people say “tech sector” they’re mostly talking about the big FAANG (or whatever the acronym is now) companies where you make lots of money working for a somewhat prestigious brand. Safe bet is the number of jobs requiring tech skills will increase overall, but probably won’t pay as well.
Does AI actually pan out well enough to replace coders within the next few years? If so it will eat entry-level programming jobs first, but I think it will be quite a while before AI is effectively writing OS or database code further down the stack. Thus the task for tech workers becomes specializing faster than AI can. However, the issue with specialized jobs is that there are fewer of them. And they are more difficult, technically.
People are bad at predicting markets and are almost always cursed to become “bagholders” (here, of a CS degree presumably) perpetually waiting for the market to hit again. Psychologically it is very difficult to break out of this state and accept the good times aren’t coming back, due to the FOMO of bailing right before the long-awaited gigantic green candle. However, the analogy breaks down here because while skills do decay with lack of practice, the fundamental programming skill is more like riding a bike - you don’t forget. Thus if you retrain as an electrician or something it isn’t unthinkable you could switch back to programming when times get better.
Depends on a few things.