rich has written 10 posts for

Steve Reich’s Clapping Music with Scala and Akka

Using functions to express musical ideas is nothing new: Harmony, time signatures, the relations between notes in a scale and musical form all have their roots in mathematics, and composers have used mathematical abstractions for millennia (see Pythagorean Tuning for a 2500-year-old example). These abstractions, however, are not always obvious from they way that music is written down, […]


LCD Digits with Scala

I recently attended one of the coding dojos run by the London Scala User Group. It was great fun, and I’d recommend getting involved to anyone who’s interested in meeting other developers and learning more about scala and functional programming. After breaking into groups, we set about tackling the ‘LCD Digits’ problem from Although […]


Using the iPad as an IDE

I’ve been working through Aaron Bedra’s set of clojure koans recently in an effort to improve my functional programming skills and try something new. I’ve found it difficult to make time at my desk for this, so I set up a development environment on my iPad. It’s worked surprisingly well, so I thought I’d share my […]


Turbocharge Your Mocking Framework With PowerMock

As mentioned in my last post, I am an ardent fan of the Mockito Framework. Originally developed as a fork of EasyMock, it equips developers with the tools to create mock objects using clean and expressive code. In this post, we will show how PowerMock can be used alongside Mockito (or EasyMock) to create mocks for classes that […]


Using Reflection To Create Mock Objects

Well-established tools like Mockito and EasyMock offer a powerful range of features for defining and interacting with mock objects. I use both heavily in my unit tests, and would recommend them to anyone looking for a mocking framework. Sometimes, however, a real (i.e. non-proxied) collaborator is called for, or adding third-party libraries may not be an option. In most […]

Email Updates

Subscribe to this blog and receive notifications of new posts by email.


Richard Ashworth
Head of Engineering at Goodlord
Experienced software engineer and technical leader. Passionate about functional programming and Agile methods. Check out my blog at


Read this blog in your favourite news reader: