Waiting the 80 seconds on a new game every time I test is slightly irritating, so now let's get serialization, and thus the ability to save and load built.
Transformers of Resources are the things that can be enabled or disabled and then either consume, generate, or both a set of resources atomically. Time to write them.
Today I'm going to make this actually do something now, thus actions and buttons!
It is now time to design the application itself and this will be done by following a type-driven design, where we design the types first before writing the code that transforms the data between the types.
In this part let's come up with a simple format of how the game should look and act while writing out the start of the view.
I've been meaning to make a more comprehensive bucklescript-tea tutorial / example project for a while, and I had an older one partially done but it is a bit out of date now so I've decide to make one anew instead, and to facilitate this I've decided to make a game. Right now most of the 'reference information' about bucklescript-tea is identical to Elm's documentation, so seeing the real-world use of it would be more generically useful.
This article will demonstrate how to setup Bucklescript to work with a stock Elixir Phoenix project and how to use example code in the project.
I am setting up a new project that will be using Phoenix and Elm together, so I am taking this opportunity to document the process to make it easier for others to set up as well. Maybe I should turn this into a mix 'new'able template sometime...
For my first content-post here I think I will touch on one of Elixir's niggles that bug me, the pipe operator, or specifically one of the few things that bug me about it. Now do not take this that I hate the pipe operator, I love it, however it does have a few warts, so lets talk about one of them today.
Regardless of my opinion of where a functional pipe operator like Elixir's |> should put arguments (at the end, not the beginning), wouldn't it be nice to be able to specify where a piped in argument was placed for those needed cases?