(λx.x) Ben Hanna

Software Engineer and Functional Programming Enthusiast

Articles


  • Wed 03 April 2019
  • Blog

Writing a Game in C: Parsing S-expressions

Over the past couple weeks I've been trying to work out how I want to store my game configuration. At first I started playing with XML, which was nice because I could stream a file rather than loading the entire thing into memory but I turned away from XML because …

  • Wed 26 September 2018
  • Blog

Building an Elm project with Parcel

Do you loathe setting up the same webpack configuration for every new elm project you start? Well, worry no more because parcel, a zero-configuration bundler, now officially supports elm assets. In this tutorial we'll setup a new project from scratch to demonstrate just how easy the process is. Create the …

  • Fri 24 August 2018
  • Blog

Building a Backbone.js project with Parcel

Do you loathe configuring webpack every time you setup a new application? Well, you may be better served by parcel, an alternative bundler that touts zero-configuration. Quite simply, it just works. In this article I'll demonstrate how setup a basic Backbone project using parcel. Create the project Starting from scratch …

  • Mon 18 June 2018
  • Blog

Basic HTML5 Drag and Drop with Elm

In doing some research for a potential project I decided to see how drag and drop functionality can be implemented in Elm. Thankfully, it looks like it's not too hard to achieve since drag and drop is now part of the HTML5 standard. To demonstrate this I'll show you how …

  • Mon 21 May 2018
  • Blog

Building a Backbone.js project with Webpack

Have you ever wanted to write Backbone.js in the same module format as Node.js? Well here's how you can do it with webpack. In short webpack allows you to write browser JavaScript using the CommonJS module format. The main benefit to this is that webpack will bundle all …

  • Mon 14 May 2018
  • Blog

Setting up a Haskell Environment in Ubuntu

These instructions have been tested against Kubuntu 18.04 LTS. In the process of learning Haskell, I've recently gone through the various editors to try and see which one has the ideal tooling. There's many different opinions on the matter, but for me I've settled on Emacs with intero. I …