IMNSHO, It's a good time to be a mid/senior-level programmer, average time to be entry level.
Data science jobs are generally following the trend of programming jobs (maybe a bit less pay on average). I expect conditions to only improve over the next 5 years.
About layoffs:
-
Tracking all tech layoffs: https://layoffs.fyi/
-
Which departments get affected: https://interviewing.io/blog/2022-layoffs-engineers-vs-other-departments
About salaries:
-
basically unaffected by layoffs
CS employees also get great benefits:
Salaries are good even though employers illegally collude to reduce salaries