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 cyber-dojo.org. Although fairly straightforward as a programming challenge, it offers a number of ways to experiment with different functional idioms. The goal is to write a program that takes an integer, and formats this as a string composed of the ‘.’, ‘_’, “|’ and ” ” characters so that the output resembles an LCD display.
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 setup.