For people taking CIS 1200: how are you approaching the OCaml part of the course?
Hi everyone!
I'm a recent graduate currently focusing on OCaml and functional programming, and I've recently started working with a student who's taking CIS 1200.
One thing I've noticed while helping with the course is that the hardest part for someone new to OCaml isn't always the syntax. It's developing the right way of thinking about functional programming.
We've been using a pretty simple approach:
Understand the concept → work through an example → try a similar problem → code it in utop → debug → explain it back.
Some of the topics we've been working through include:
- Recursion
- Pattern matching
- Higher-order functions
- Currying and partial application
- Lists and trees
- Modules and abstraction
I'm curious about other CIS 1200 students:
Which OCaml topic has been the most difficult for you so far, and what helped it finally click?