A day at the bakery
Preview unavailable
You must log in or sign up to view this lesson.
Login
Sign up
B01 Introduction to Clojure (old version)
Buy now
Learn more
Introduction
9
Day 1
Introducing X5 and JC
Working with the REPL
3
Defining functions
Defining a bake-cake function
Conditionals
10
Defining scooped?
Defining squeezed?
Defining simple?
2
Defining ingredient types
2
Looping a number of times
6
Using the plural functions
2
Variadic functions
8
Baking with variadic functions
4
Bake cookies function
Day 1 Conclusion
2
Day 2
Running Leiningen projects
16
Error function
10
Refactoring errors
Bakery locations
Scooped?, squeezed?, and simple? refactor
2
Fetching ingredients
4
Fetch ingredients generic
Maps
Fetching a shopping list
Refactoring fetch-list
1
Refactoring locations
2
A day at the bakery
5
Analyzing a day at the bakery
Functional programming
2
Into
2
multiply-ingredients
2
order to ingredients
orders to ingredients
Making one shopping trip
Making one delivery
Day 2 conclusion
Day 3
Day 3
Add cocoa
Baking brownies
Analyzing recipes
1
Starting the database
Perform
Mix step
Pouring and baking
Adding ingredients
2
Bake recipe
Generic bake function
Adding all recipes
1
Cleaning up order to ingredients
Ingredients in the database
Refactoring scooped, squeezed, and simple
2
Generic fetch ingredient
Refactoring fetch-list (again)
1
Make storage-location more useful
Redefining add
Defining actions
Refactoring perform
1
Conclusions
1
Appendices
Appendix: Creating a Leiningen project