Quadblock

Learn Liveview and Elixir. Your purchase supports our mentoring programs.

Buy now!

Description

Skills

Code Organization

Reducers

Protocols

Liveview Lifecycle

Liveview Render

Liveview Events



What You Get

7 free videos, 14 paid videos.

for $10.00

Description

Quadblock is loosely based on Tetris, one of the most iconic video games of all time. In this video tutorial with seven free videos and fourteen paid videos you’ll learn to build it. Along the way, we’ll learn a little Elixir, some Phoenix, and also LiveView.


Elixir is the language reshaping the way resilient, high performance apps are made, without losing productivity. LiveView is a hot new framework exploring building web applications without the need for custom JavaScript. Together, we’ll understand how they work together.


Videos

Public & Private

1: Basics

Start project, and create a new random brick.

2: Reducers

In part 2, we establish reducers to move and spin basic brick.

3: Model the Shapes

In part 3, we create the model for the geomitry of each tetromino using a flat functional data structure.

4: Shape geometry

In part 4, we create another set of reducers to work on the points of a teromino to manipulate geometry.

5: Testing Reducers with Pipes

In part 5, we build a test helper to make it easier to test our tetromino.

6: Render as String

In part 6, we translate the brick to a string in preparation for using the inspect protocol.

7: Inspect a Brick

In part 7, we make a brick work in IEx by making inspect render a two dimensional shape.

Video

8: LiveView QuadBlock series

We set up LiveView and learn what a LiveView is.
Purchase Set

Video

9: LiveView Quadblock Series

We set up a LiveView route and work with a trivial LiveView view, paying attention to the lifecycle.
Purchase Set

Video

10: LiveView QuadBlock series

Dependencies. We talk about the strategies for managing dependencies. We set up a Pancho project, and plug in the Tetris work we've done so far.
Purchase Set

Video

11: LiveView QuadBlock series

We begin to show graphics using SVG. We show a background and a single box.
Purchase Set

Video

12: LiveView QuadBlock series

We get ready to render a tetromino by creating a function to prepare us to render, and a reducer called show that adds points to a socket.
Purchase Set

Video

13: LiveView QuadBlock series

For the first time, we tie into handle_event "keydown". We render a block and tie it to the arrow key. so a user can move our pieces right and left.
Purchase Set

Video

14: LiveView QuadBlock series

We work on our api and boundaries layer, working in the idea of collisions with the boundaries and other blocks.
Purchase Set

Video

15: LiveView QuadBlock series

In our API layer, we build an API that handles uncertainty, a function that could potentially take the user out of bounds. We begin to layer on tests.
Purchase Set

Video

16: LiveView QuadBlock series

We integrate our new API to our keydown functions and begin to handle the game mechanics on the bottom of the board.
Purchase Set

Video

17: LiveView QuadBlock series

Start working with the game mechanics of the bottom, so we can see bricks that hit the bottom merge with the bricks that are already there.
Purchase Set

Video

18: LiveView QuadBlock series

We write the backend code to erase blank rows.
Purchase Set

Video

19: LiveView QuadBlock series

We score the bricks that merge and write tests for the new game mechanics.
Purchase Set

Video

20: LiveView QuadBlock series

We test and debug the new bottom to get it ready for the LiveView.
Purchase Set

Video

21: LiveView QuadBlock series

Integrate the new bottom code to work with the API and LiveView.
Purchase Set

Video

22: LiveView QuadBlock series

Bring on the gravity! We integrate a timer tick to simulate gravity and wrap up the session.
Purchase Set

Community Resources

Cool quick trips for Quadblock

Learn It

These resources will get you on the path to learning with background information, tooling and exercises.

Do It

You decide how deep to go. These resources are exercises and projects to cement your learning.

Grok It

These resources will help you put your new knowledge into context so you'll be better at your everyday job.