My Journey Building Tetris Kachori - Elixir and Phoenix LiveView
I will share my experience how I built this Tetris game without writing a single line of custom javascript code. All the code is written in Elixir and Phoenix LiveView.
you can play the game here http://tetris.sandeshsoni.com/
Outline/Structure of the Case Study
This talk is more about Ecosystem and the journey. Before and after building game. Not technical.
Structure
The journey with LiveView.
- Basic Counter.
Mouse key events.
auto-increment after interval.
HTML CSS for Game Board.
new Elixir project
- Elements needed i.e Game Components.
- Game logic in Elixir
- implement this Elixir project and make PhoenixLive paint it to the screen.
few functions of Elixir used Game logic Tetris example.
I will also share a few screenshots of how it behaved with journey as Game progresses.
Learning Outcome
This talk is more of journey. How it started. The iterations. After deployment updations(performance improvements).
Get to understand many functions of Enum, List, Map, MapSet that you were not sure when and how to use.
Get a more understanding about how to use the set of functions together.
Target Audience
Anyone
Prerequisites for Attendees
Basic elixir syntax.
Links
Already Implemented and deployed here http://tetris.sandeshsoni.com/
Quick Video of the Game. https://www.youtube.com/watch?v=mIUN_Lw1Q6o
Blogging my experience here https://medium.com/@sandeshsoni/building-tetris-kachori-game-with-elixir-and-phoenix-liveview-sandesh-soni-5cc77cb884de
A video will be uploaded to YouTube tomorrow.
schedule Submitted 1 year ago
People who liked this proposal, also liked:
-
keyboard_arrow_down
Nikhil More - Do you OOP in Elixir?
20 Mins
Experience Report
Beginner
One of the strategies being adopted by RoR or Java software developers in adopting Elixir is they have not yet adapted themselves to unlearn the OOP in developing the web systems. This has caused OOP concepts to creep into full fledged Elixir systems. This presentation seeks to highlight these subtle points that need to be avoided to make the code more FP and less OOP.
-
keyboard_arrow_down
Kapil Reddy - Handling and Composing complex side effects in Clojure with Sanity
45 Mins
Talk
Intermediate
At Helpshift, we face managing complexity of these side effects which touch 10s of different systems. Each side effect poses a failure scenario which can lead to it's own business decision. Compounded failures pose even more complexity. To add to the problems we extending the codebase to add new business logic regularly.
I will present a solution which is a combination of Clojure and FP following techniques. We will also discuss how ideas when combined together can create an elegant solution,
1. Data - Side effects definition as data
2. Almost no syntax - Minimal definition
3. Many functions for one DS - Multiple execution and failure recovery modes for side effects
-
keyboard_arrow_down
Mangala Kader - Understanding the pitfalls in Erlang / Elixir and steering clear from them
Mangala KaderCTO | Co-FounderIteron Technologies Private Limited | ElixirExpertsschedule 1 year ago
45 Mins
Talk
Beginner
Erlang has been in production for more than 30 years and a highly battle-tested robust system, which is being used by everybody including Telecom systems that provides 99.99% uptime. Elixir has been built on top of Erlang overcoming the shortcomings of the language and also using meta-programming, it has opened a new paradigm of looking at the language itself. I want to show what Elixir is to the audience and minute nuances that every experienced or inexperienced developer should be aware of before jumping into the magical erlang and elixir world.
-
keyboard_arrow_down
Sandesh Soni - Build Tetris Game with Elixir and Phoenix LiveView. Full day workshop.
480 Mins
Workshop
Beginner
Phoenix LiveView provides ability to build web application without any custom javascript.
You can write all the code on Backend server and the connection is alive and stateful.
In this workshop, you will build Tetris App in Elixir and Phoenix LiveView. The aim of this workshop is give more hands-on Elixir experience and cover various functions and syntax. -
keyboard_arrow_down
Aditya Giri - Elixir and WebAssembly
20 Mins
Talk
Beginner
WebAssembly is one of the new technologies around the block that has vast areas still to be explored. I'd like to give a talk explaining what the WebAssembly is, what are the possibilities that you can cover with the help of WebAssembly, how does Elixir and BEAM VM fit into the equation and how to interoperate between Elixir and WebAssembly.
Public Feedback