Monthly Archives: July 2012

Another Small Example of the Type Class Pattern

Some guys at work wanted to know what was going on in this code:

import scalaz._
import Scalaz._
val x: Option[Int] = whatever
val y = ~x // Huh!?


Posted in Scala, Small Examples | Comments Off

TDD Regex Kata

For the past couple of years, we have been using an exercise in various of the training courses we lead, the purpose of which is to show that maintaining too narrow a view during TDD can lead to a very degenerate process and results.

Posted in Uncategorized | Comments Off

A Small Example of Kleisli Arrows

This is a simple example of use of a mysterious beast called a Kleisli arrow.

Posted in Scala, Small Examples | 6 Comments