CS degrees, at least in my experience, prep you for a bunch of things that honestly don’t matter too much. Like, I don’t think knowing what P versus NP means really helps me at my job. I think learning to use build tools and frameworks rather than just the language itself would’ve been more useful.
The best professor I had in that regard at college was younger and also working at a “real” company while also teaching (I believe he was getting a master’s degree). He taught us about Spring and Maven and had us make a REST API. The only downside is that this course was about making GUIs and the majority of it was about Swing which nobody really uses. I have a feeling he added the other assignment because it was.more relevant to things most folks do with Java.