Log In
0% completed
All Lessons
Free Lessons (5)
Introduction
Background
About This Course
Mapping Our Route
Explore the Route
What Lies Ahead?
Model Data and Behavior
Define the Functional Core in Elixir
Start the Game
Discover the Entities and Model the Domain
Model Coordinates
Guesses
Islands
Boards
Hits and Misses
Islands in Action
Play the Game
Wrapping Up
Quiz
Working of State Machines
Manage the State with a State Machine
A History of State
A Different Path
A Functional State Machine for Islands
Module and Functions
The Initialized State
The Players Set
Player One’s Turn
Player Two’s Turn
Game Over
Wrapping Up
Quiz
Add OTP for Concurrency and Fault Tolerance
Wrap It Up in a GenServer
A Look at Microservices
OTP Solutions
GenServer and Application
Getting Started with GenServer
The GenServer Pattern
Passing Messages
Introduce Calls and Casts
Initialize the GenServer State
Customize GenServer Behavior
Add a New Player
Position the Islands
Set the Islands
Guess a Coordinate
Name GenServer Processes
Wrapping Up
Quiz
Process Supervision for Recovery
Introduction
Linking Processes in Supervision
Long-running Processes
Link Processes
Introduce the Supervisor's Behavior
Conditions of Child Processes in Supervision
The Child Specification
Build a Supervisor for the Game
Start the Supervision Tree
Start and Stop Child Processes
Set Timeouts
Put the Pieces Together
Recover the State After a Crash
Get Started with ETS
Store and Retrieve the Game State
Cleaning Up After a Game
Wrapping Up
Quiz
Generate a New Web Interface with Phoenix
Add a Web Interface with Phoenix
Phoenix Is Not Your Application
Applications
Manage Dependencies
Start and Stop Applications
Generate a New Phoenix Application
Add a New Dependency
Call the Logic from the Interface
Wrapping Up
Quiz
Create Persistent Connections with Phoenix Channels
Phoenix Channels
The Moving Parts of a Channel
Let’s Build It
Define a New Module
Establish a Client Connection
Converse Over a Channel
Communication Between Players
Connect the Channel to the Game
Add a Second Player
Position the Islands
Set the Islands
Guess the Coordinates
Phoenix Presence
Authorization
Wrapping Up
Quiz
Appendix
Install the System Dependencies
Functional Web Development with Elixir, OTP and Phoenix
/
...
/
Wrapping Up
Wrapping Up
Get a brief introduction to what we've covered so far.
We'll cover the following...
What we have learned so far
Get ready for the next step
What we have learned so far
We’ve done
...