alpacaaahttps://alpacaaa.net/blog/
Recent content on alpacaaaHugo -- gohugo.ioen-usSat, 06 Jan 2018 11:00:39 +0100Beginning Purescript: Dropping effect rowshttps://alpacaaa.net/blog/post/purescript-drop-effect-rows/
Sat, 06 Jan 2018 11:00:39 +0100https://alpacaaa.net/blog/post/purescript-drop-effect-rows/Effect rows in Eff (and Aff) are a quite interesting feature when it comes to effectful code in Purescript. On the one hand, they look pretty useful because you can tell immediately what kind of effects are involved in a specific function but, depending on your level of experience and the size and scope of the app you&rsquo;re writing, they can be a bit cumbersome to work with.
Consider this functionPurescript for Elm developers.https://alpacaaa.net/blog/post/purescript-explained-to-elm-devs/
Sun, 12 Nov 2017 11:00:39 +0100https://alpacaaa.net/blog/post/purescript-explained-to-elm-devs/I&rsquo;ve been running Elm in production since March 2017.
Purescript always caught my eyes as a very interesting language and I&rsquo;ve been learning it more and more over the past couple of months. I found that getting productive with Purescript is not as straightforward as it could be for people familiar with Elm.
So I put together a document highlighting the most significant differences between the two languages. You can find it here:In depth overview of Elm and Purescript. Lessons learned porting a game from Purescript to Elm.https://alpacaaa.net/blog/post/elm-purescript-in-depth-overview/
Mon, 20 Feb 2017 11:00:39 +0100https://alpacaaa.net/blog/post/elm-purescript-in-depth-overview/TL;DR I&rsquo;m finally able to read through Purescript/Haskell source code. I ported a game written in Purescript to Elm. You can play with the Elm version of the game right here, what follows are my thoughts on the two languages.
How I got here A few months ago, I decided I was going to learn Haskell. The first thing I noticed was that I couldn&rsquo;t read Haskell code.Let's make a GraphQL client in Elm!https://alpacaaa.net/blog/post/elm-graphql-client/
Wed, 18 Jan 2017 13:00:39 +0100https://alpacaaa.net/blog/post/elm-graphql-client/I&rsquo;m a big fan of GraphQL and I&rsquo;d like to explore how to use it in Elm. With a statically typed language (like Elm) we should be able to achieve very nice things, such as using a DSL to write queries and determine their correctness at compile time. We&rsquo;ll initially build a simple implementation and see where that takes us.
I&rsquo;m going to use a service called graphqlhub which exposes some famous REST apis as a GraphQL endpoint.Building a Mastermind game in Elm.https://alpacaaa.net/blog/post/elm-mastermind-game/
Wed, 04 Jan 2017 11:00:39 +0100https://alpacaaa.net/blog/post/elm-mastermind-game/Let&rsquo;s kick off the new year with another game. This is a little bit more complex than the Memory Game and Rock Paper Scissors clones I implemented in Elm over the past few weeks. You might want to refer to those previous tutorials if you&rsquo;re not entirely familiar with Elm and how the Elm Architecture works. This is what we&rsquo;re going to build:
So this is Mastermind! I created this little explanation of the types we&rsquo;re going to use.Rock Paper Scissors in Elm. A beginner friendly implementation.https://alpacaaa.net/blog/post/elm-rock-paper-scissors-beginner/
Wed, 14 Dec 2016 11:00:39 +0100https://alpacaaa.net/blog/post/elm-rock-paper-scissors-beginner/This is the classic Rock Paper Scissors game on steroids. There are two more choices that I&rsquo;ve never heard before – Lizard and Spock – and the implementation is a bit more spicy because we&rsquo;re going to grab random numbers from random.org so that we get to explore the Http module as well.
This is based off the pux-rock-paper-scissors game made by @spicydonuts in Purescript. If you&rsquo;re interested in that language you should definitely give Pux a go because it has an almost 1:1 reimplementation of the Elm architecture and I find it pretty awesome.Building a memory game in Elm. Step by step, from scratch.https://alpacaaa.net/blog/post/elm-memory-game-from-scratch/
Wed, 30 Nov 2016 11:00:39 +0100https://alpacaaa.net/blog/post/elm-memory-game-from-scratch/This is the classic Memory Game that I always use to approach a new frontend framework/language. It is based on a super old implementation that somebody made years ago – this little game is my point of reference to understand how things work.
What are we going to build Here&rsquo;s a working demo of the finished project:
The whole thing will be about 200LOC so it should be pretty easy to follow.