wintermeyer / elixir-phoenix-ash

An Elixir, Phoenix and Ash Beginner's Guide
https://elixir-phoenix-ash.com
Other
10 stars 7 forks source link

Remove / simplify parts of the elixir introduction #12

Closed riverrun closed 4 years ago

riverrun commented 4 years ago

Parts that I think we can remove:

Parts that we can simplify:

wintermeyer commented 4 years ago

variable scope

this is something that the user can learn about later

Do you mean by "later" in the chapter or in the book?

riverrun commented 4 years ago

In the case of variable scope, "later" could also mean outside the context of the book.

Also, instead of having a whole section covering variable scope, we could just add comments to code where scope might be confusing. It looks like the book is intended for experienced programmers, and I don't think variable scope is going to be that confusing.

In the case of writing a mix task, "later" means later in the book (as long as we can think of a reasonably practical example).

wintermeyer commented 4 years ago

In the case of variable scope, "later" could also mean outside the context of the book.

We need to cover variable scope because I expect many Rails developers to read the book. There you have @foobar variables which are accessible anywhere. We have to make clear that this is not the case in Phoenix.

riverrun commented 4 years ago

I still don't think we need a whole section to cover variable scope, but I will keep it as it is for the moment.