It’s probably better if You dedicate a process per game, which will register/unregister players.
The idea is to be able to switch interface easily, it should be possible to switch from Phoenix to a Text Based client. Thus, it’s not recommended to have your game depend on Presence…
This is the way they do in…
[image]
You’re a programmer, so you don’t need spoon feeding with the conventional drivel about “this is an integer.” No. You need to know what’s different, and you want to know quickly.
But you want more. True mastery of Elixir comes from understanding the underlying idioms: functional programming, transformations, concurrency, and application structure. You need to know the tools, such as IEx and mix. And you need to understand the frameworks, such as OTP and Phoenix. This course will get y…
Island game in Functional Web development with Elixir, by @lance
[image]
by Lance Halvorsen
Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web applications. Make the most of them as you build a stateful web app with Elixir and OTP. Model domain entities without an ORM or a database. Manage server state and keep your code clean with OTP Behaviours. Layer on a Phoenix web interface without coupling it to the business logic. Open doors to powerful new techniques that will get you thinking about web devel…
[image]
Get 20% off with coupon code “elixirforum”!
6 Likes