Elixir Immersion for 60 days, day 10
- The OTP chapter
- Building the Counter API

I like when things go awry like in this case. I just simply forgot to alias the Counter module, but being sure that I have the function in the module made search for how can I list all the functions in the module. ModuleName.__info__(:functions) is the way to check that list.
These are the stackoverflow answers you can read to find out more.
I’m reading the OTP chapter. I came to conclusion that for some reason this chapter is hard for me to grasp and more importantly I have an innate desire to really grasp it. So, I will actually take my time with it.
I, also, feel like this is the time to use the Feynman’s approach.
Let’s first describe what is the Feynman’s approach.
My rudimentary understanding is read the chapter and try to retell that chapter to a kid in a language that a kid would understand. Well, kids usually ask questions. I’ll start with questions:
First the idea of OTP is build on top of processes. Let’s first start our journey at processes.
A process can send and receive messages. How does a process can send and a receive a message?
Well, first you have to create the process and get its address.
One little off topic. While I employ this exercise of retyping some moment form the “Programming Phoenix”. Which I do for two reasons: 1) I just like typing. 2) It helps me remember and sometimes focus better.

Well, what I’ve noticed is that my eyes get tired. But if I close my eyes they don’t.
In a recent conversation with a friend of mine he mentioned that he got himself another laptop. He first had a macbook and now he’s using lenovo. He told me that his vision got worse lately and he said it’s harder to focus using lenovo. So I’m guessing macs have better screens.
But the idea of having one of my eyes closed has come to me before when I was looking at a morning sun. At this time the sun doesn’t burn the retina and I’ve noticed that if I close one eye with a palm of my hand I can look at the morning sun easily.
This is just something I will research later. It’s a mental note for myself.
For now I’m dragging my feet slowly through the OTP chapter. Very slowly, like a snail.
