- Functions are applied to data.
- Functions are applied to data.
- Functions are applied to data!!!
My Python-brain still sees TodoList.add_entry(todo_list, new_entry)
as an object method call and not a function to modify todo_list
.
Additionally, when inside a GenServer cast
or call
I’m thinking, “Where did the todo_list
come from?”
It came from the GenServer and is the GenServer’s state.
Brain is slowly switching to functional mode.
My Github repository. Book samples Github code samples.
Quotes are excerpts From Elixir in Action, Third Edition, Sasa Juric. All notes and comments are my own opinion. Follow me at @rgacote@genserver.social