You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This section is just a brief mention of mix. The main reason I'm mentioning it here is to make people aware that there is a way of managing a project with multiple files. The mix tool isn't used in any other example before the chapter 7, so you need to read more than half of the book to see it in action. I was worried that people might get a wrong impression that we just shovel all the code into a single file, so I wanted to quickly mention it early on.
I do agree with you that explaining mix run is possibly redundant and confusing here. Since I'm just working on the update for the 2nd edition, I'll think about removing that.
I don't think people will get the impression that Elixir programs are written in a single file, as no other serious language does that, and quickly, they will learn it from the text, so do not worry.
It is much preferable to introduce Mix in one shot later when it is really needed. It will be much helpful to recall Mix commands later after reading the book.
In page 61, when discussing the use of Mix, there is the sentence
"Starts the system; terminates as soon as MyProject.start finishes"
but "MyProject.start" was not introduced before.
Perhaps the introduction of Mix should be deferred until OTP applications are discussed to make the use of Mix more clear to the reader.
The text was updated successfully, but these errors were encountered: