When I went to a university, they got around this by making the syllabi as vague as humanly possible. They even would have a spare course code in each department which was just "whatever the professor feels like teaching, and if it's popular we'll turn it into a real course". Syllabi would avoid specifying the exact languages/frameworks/technologies taught in class.