Want this course?
We conclude the course with reflections on what we've learned.
Well, this has been a deep exploration of the idea of data-driven programming. We start with the data about the thing we are doing so we can use that data in multiple ways. Data is more flexible than code. I hope that this deep dive into data-driven programming has shown you a glimpse of the possibilities of what you can do with Clojure.
I'd like to draw your attention to the size of the code. Has it become smaller as it has become more abstract?
How easy is it to add new recipes? New ingredients? New actions?
Our job has been to teach X5 how to bake. That not only means he had to learn how to make cakes, cookies, and brownies, but to understand deeper things about fetching ingredients, adding them to the bowl, and how recipes are structured. We've helped him build some of that understanding by refactoring into a data-driven approach.
Code is available: lispcast/introduction-to-clojure
Code for this particular lesson is available at the
3.22 tag .
You can checkout the code in your local repo with this command:
$CMD git clone https://github.com/lispcast/introduction-to-clojure.git $CMD cd introduction-to-clojure $CMD git checkout -f 3.22