Running with Multiple Users
Let's run our project, but this time with two separate users giving the quiz.
This trial run will be different from all of the others. We’re going to assume our user interface will keep track of two things:
-
The email address for each user.
-
The quiz they are taking at any given time.
Other than that, we’ll make no assumptions at all. We’ll refer to all processes by some name, and we’ll keep track of more than one user at a time.
Tracking data
Let’s open up the iex
terminal and get started:
Executable
Press + to interact
alias Mastery.Examples.Math
Press + to interact
alias Mastery.Examples.Math
Press + to interact
email1 = "mathter_of_the_universe@example.com"
Press + to interact
email2 = "mam_math@example.com"
Output
iex(1)> alias Mastery.Examples.Math
Mastery.Examples.Math
iex(2)> email1 = "mathter_of_the_universe@example.com"
"mathter_of_the_universe@example.com"
iex(3)> email2 = "mam_math@example.com"
"mam_math@example.com"
iex(4)> title =
...