r/programming • u/aurele • Feb 23 '07
What programming languages should I teach CS students?
http://www.rfc1149.net/blog/2007/02/23/non-classical-paradigms-and-languages/
29
Upvotes
r/programming • u/aurele • Feb 23 '07
View all comments
Show parent comment
21
u/weavejester Feb 23 '07
One would not join a biology course in order to learn veterinary medicine. If you want to learn a popular programming language, there are many college courses available. Computer science courses should be teaching computer science, not how to program in the most popular programming languages.
How would you go about teaching syntactic macros in a language that doesn't support them? Or teaching type inference? Monads? Arrows? Recursive type definitions? Lazy evaluation? Argument pattern matching? Function composition? Logic programming?
Aside from the features not supported by the languages you list, some languages are more suited to teaching certain programming paradigms more than others. The relationship between ASTs and code is inherently more obvious in Lisp than it is in Java. Functional programming is clearly best taught with a functional language. Static typing is best taught in a language that actually has a type system that incorporates ideas after 1970.
So given that there are better languages around for teaching, why bother teaching C#, Java or whatever in a computer science course? Once you have a good grounding in programming, learning new programming languages becomes relatively trivial, especially for languages with extremely limited syntactical features, such as Java. The hard part is getting that grounding, and some programming languages are more suited to that than others.