Intro CS: Python, Java, C, Lisp, or Haskell?
Intro CS: Python, Java, C, Lisp, or Haskell?
How does your school/university teach it? What have been the pros and cons of that choice?
Obviously, teaching students logical and foundational concepts is the most important part, but a student's first programming language does color their internalization of the concepts and how they approach solving different problems. For example, OOP is really hard to grasp coming from a functional background. Learning how to manage memory efficiently and use appropriate data types is really hard coming from an interpreted language like Python or Javascript. What have you and your peers decided works best for you and your students?
When answering this question, I think there are big differences between
So I have to ask what kind of students are you teaching?
For me, college, but I was really just wanting to get a breadth of experiences from other folks. Frankly, my department is considering switching from Java to Python, and I was curious about pros and cons of that decision beyond what I could think of off the top of my head.
It seems to me that many well respected CS departments in the US make use of multiple languages in introductory courses.
Some examples:
So it seems that it is common among introductory CS courses at a collegiate level to make up for the limitations of a particular language to use more than one.
Further, it seems that schools make an attempt to have a cohesive sequence of two or three introductory courses where courses build upon prior coursework to provide a broader breadth of foundational understanding. My favorite example of this is Cornell's CS 3110 which uses OCaml to teach Data Structures and Functional Programming.
I know this doesn't actually address your original question but I hope it inspires you to be flexible with the approach to the new curriculum.