Author Archives: channing

A Small Example of the Typeclass Pattern in Scala

Typeclasses, (or type classes), are most famously a language feature of Haskell that has gained interest in the Scala community. Here I describe the basic pattern with references for further study.
[...]

Posted in Scala | 1 Comment

Flattening the Loan Pattern

The loan pattern is a common pattern for working with resources that should be closed or otherwise managed after use. It removes responsibility from the developer to manage a resource properly. When loaning several objects, one often ends up with nested functions. Here is a way to flatten that to make things clearer.
[...]

Posted in Scala | Leave a comment

A Small Example of Applicative Functors with Scalaz

I recently blogged about Functors and mentioned a mysterious beast called Applicative Functor. Here is a simple, complete example that shows how you can use Applicative Functors with the Scalaz library, with references for further reading.
[...]

Posted in Scala | Comments Off

A Small Functor Example

In the world of functional programming you will quickly come across the concept of a Functor. What I present below is a simple example that might provide some intuition, with references for further reading.
[...]

Posted in Scala | Comments Off

A Successful Delivery

Over the last few months, we’ve been working on delivering HSBC’s Clearing Connectivity Layer and OTC Cleared Trade Acceptance System. We went live early December, and in fact, we delivered our first release early.

[...]

Posted in Casual Miracles, Scala, Software Process | Comments Off

A Small Example of the Scalaz IO Monad

I wanted a very tiny example of using the IO Monad in the brilliant Scalaz library, and here it is.

[...]

Posted in Scala | 5 Comments

A little Scalaz magic

Here are a few useful things you can do easily with Scalaz to make you code a little simpler.
[...]

Posted in Scala | Comments Off

Scaladays 2010

I attended Scaladays 2010 at EPFL in Lausanne, Switzerland in April. at which Nigel Warren and I presented the work we had done on porting Fly’s Java client library to Scala. You can watch all the Scaladays videos on the Scaladays website and so I will not dwell on the talks, which were excellent. Instead, I want to talk about Scala and its community, led by Martin Ordersky.

[...]

Posted in Scala | Comments Off

Producing Systems that Do Not Rot

I was driven to write this article after reading Kirk Knoernschild’s blog about Rotting Design and felt I needed to say something.

[...]

Posted in Quality, Software Process | 3 Comments

Software Quality – Pragmatics

This article continues my series on Software Quality. My thesis is that we judge quality using the same inbuilt sense of aesthetics as we would a work of art or an everyday object, albeit at quite a high level of abstraction.

[...]

Posted in Quality, Software Process | Comments Off