On unit testing and type checking

As most software developers know, it’s hard to create robust software. There is a lot of software out there that’s got bugs and a lot of time the developer doesn’t know about it and the users of the software run in to them. This is of course a very frustrating thing for both developers and [...]

Posted at Oct 23rd | 6 comments | Filed Under: Code read on

Grid Computing using Javascript

I recently had an idea that’s both really interesting and a bit disturbing. Authors of websites could use clients’ computers as a massive grid computer. If you have a problem that you can solve by using map-reduce, you could do the map step in the client’s web-browser, and let them send back the result. [...]

Posted at Sep 2nd | 15 comments | Filed Under: Code read on

Look ma, no callbacks!

In this article, we will see how we can use arrows in Javascript. Arrows are a concept from functional programming, and we’ll see how they can make our life in Javascript a lot easier. Our code uses the excellent Arrowlets library. It’s still alpha code, but it’s already quite useful.
We’re going to build a small [...]

Posted at Aug 25th | 6 comments | Filed Under: Code read on

Formlets in Haskell

One of the most low-level parts of web development is building forms. You need to code to both build forms and handle them, and manually sync that code to make sure the names match up. In this post, we will use formlets and HAppS-Server to solve those problems. Formlets are a way to compose parts [...]

Posted at Jul 30th | 6 comments | Filed Under: Code read on

Stemming with Haskell reloaded

Thanks to the nice discussion with Reinier Lamers of the previous post, I’ve updated and released the stemmer library with a more Haskell-like interface.

Posted at Jul 19th | 5 comments | Filed Under: Code read on

Stemming with Haskell

Last week we worked on building a small search engine with Haskell. As you might know, when searching you’ll need some index you’ll search and possibly stemming to allow people to search for variants of a word and still come up with accurate results.
Fortunately for us, there are already good libraries and tools out there [...]

Posted at Jul 14th | 12 comments | Filed Under: Code read on

Add attachments to Mail.app from the command line

If you spend a large part of your day in the console, like we do, you’d like to have all sorts of nifty tools to be able to direct your complete OS from there. Fortunately, we’re on OS X and AppleScript makes this pretty easy. Despite its somewhat unruly looking syntax, which (quite succesfully) tries [...]

Posted at Jun 7th | 3 comments | Filed Under: Code read on

A small mashup of Upcoming and Last.fm, in Haskell

I wanted to play around with the recent XML and Curl libraries that were recently released by Galois, so I decided to write a mashup of Upcoming and Last.fm. In order for this code to run, you’ll also need to install the csv package for this.
The code is relatively straightforward: fetch the top artists for [...]

Posted at Jun 2nd | 2 comments | Filed Under: Code read on

About

Tupil is Chris Eidhof and Eelco Lempsink. We code for a living, using Haskell and Ruby where possible. After working for years as web developers at very nice companies, we decided to go solo, together.