Archive for May, 2010

Learning Scala: Factorials and foldRight

This morning I started my day off with another problem to learn scala better with and I wanted to only devote 30 minutes max to it as we had a busy day ahead. With this in mind, I did a simple factorial kata that I’ve done multiple times before in other languages to practice recursion. [...]

Friday Scala Kata

As part of my quest to learn and understand scala better I’ve committed myself to doing a weekly kata and thought it’d be fun to spin it as kata I could share the problem each friday with a follow up of a solution the following week (and even better, allow others to participate too). I [...]

Finding Good Problems for Code Katas

Today one of our “product owners” (or at least close to that role within the organizational structure) overheard me discussing my recent code kata with someone and he linked me to an interesting site full of all kinds of mathematical problems to solve: http://projecteuler.net/. Now if I ever find myself wanting to do a code [...]

Follow up on the Scala Prime Factors Kata

So my fellow OCIer Tim Dalton took up my challenge to find me the “scala way” of implementing the solution in a nice one liner. I changed the example in the spec to allow a result of a list with 1 in it instead of an empty list to get rid of the conditional… the [...]

Scala Prime Factors Kata

So recently I started committing myself to understanding scala better and a perfect way of doing this is to start practicing different code katas in the language. So early this morning I started the day by doing the Prime Factors Kata in scala using specs to drive development and sbt to build run tests. The [...]

NFJS Day 3: Test Doubles With Mockito

Bright and early I got started with my own presentation today and i thought that I’d retrospect on it a bit and identify areas to improve upon. For the most part I felt the introduction to Test Doubles and what they are flowed well, however I did speak very very quickly. In the future I’m [...]

NFJS Day 3: World Class Builds With Gradle

The second session of the day that I attended after completing my Mockito talk was World Class Builds with Gradle. I debated going as I already use gradle and even gave Michael a bit of advertisement by showing some of the early attendees to my session my gradle build file, however I decided to go… [...]

How to Succeed With Agile or at Least Be Real Good At It

I put together a quick 5 minute presentation yesterday for the NFJS 300 sessions and thought I’d share it online. I was pretty impressed how it turned out giving that I only spent 10 minutes putting it together and only thought of it half an hour before the 300 sessions. .prezi-player { width: 550px; } [...]

NFJS Day 2: DSLs in Scala External and Internal

Looking to expand my scala skills, for the second sessions I decided to attend Michael Nygard’s session on Internal and External DSLs in scala. What I really liked was right off the bat how he illustrated a very simple example of internal DSLs in scala for those new to scala and DSLs: def isComment(s : [...]

NFJS Day 2: iBeans

This morning I was very torn about what sessions to go to… Spring 3, Scala Programming, iBeans and Practical Agile Database Development were sessions I had to choose from (I had already seen the session Neal Ford was giving, or something like it). With my recent work and JNB article on Camel, thought I’d give [...]

Subscribe to RSS Feed Follow me on Twitter!