Category Archives: Jan’s Blog

Movember Yoda notation!

For more programming styles, take a look at Yoda Conditions, Pokemon Exception Handling and other programming classics

Posted in Jan's Blog | Tagged , | Leave a comment

We still like Spring!

With all the recent Scala posts, you might think that we’ve abandoned our bread and butter, the Spring Framework. Absolutely not! Spring is still the most popular Java EE application framework; its dependency injection container allows us to combine the … Continue reading

Posted in Jan's Blog | Tagged , , , | Leave a comment

Functional training

I thought it might be useful to publish our internal Introducing functional programming manual. I am lucky that everyone who wants to work for Cake Solutions is keen to learn new things, and–to my surprise & immense pleasure–most people are … Continue reading

Posted in Jan's Blog | Tagged , , , | 2 Comments

U.S. Scalaz layout

If you are doing a lot of development with Scalaz, you’re no doubt using the fancy function names, and special symbols like eta, lambda, alpha, and many others. To make your Scalaz typing easier, I have a keyboard layout maps … Continue reading

Posted in Jan's Blog | Tagged , , , | 1 Comment

Implicit conversions example

As part of the work on Scalad, I needed to be able to easily express queries that will be executed against the underlying data store. I did not want to use plain Strings, such as “((column = ‘value’) or (otherColumn … Continue reading

Posted in Jan's Blog | Tagged , , | Leave a comment

entity.persist, entity.delete in Scala

I like the idea and syntax of ActiveRecord pattern; specifically, I like to be able to use the pattern obj.persist, obj.delete and so on, in Scala, a typesafe language. Before I continue, let me dismiss polluting the domain objects with … Continue reading

Posted in Jan's Blog | Tagged , , , | Leave a comment

What we do

At Cake Solutions, we do a lot of open source work; we give talks at user groups and conferences; we go to mostly the UK conferences and sometimes venture out on the continental Europe and even further afield. How? I … Continue reading

Posted in Jan's Blog | Tagged , | Leave a comment

Tomcat 7, Akka REST and a microcontroller

In this post, I am going to show you a fun experiment that combines Akka and the mbed microcontroller. The µ controller runs simple REST client that makes HTTP requests to the server to allow entry to some supposedly secure … Continue reading

Posted in Jan's Blog | Tagged , , , , , , | Leave a comment

Scala Dynamic and IntelliJ IDEA Scala plugin

Scala 2.9.x’s Dynamic support allows you to “catch” a missing method call. This is a familiar concept in dynamic languages such as Groovy. In essence, I have an object that includes a special method that will be called when the … Continue reading

Posted in Jan's Blog | Tagged , , , , , | 4 Comments

Scala Spring

What’s the difference between Spring Scala and Scala Spring? Well, in the previous post, I showed how to use Scala to implement your Spring beans; beans that will become part in the usual Spring ApplicationContext machinery. In this post, I … Continue reading

Posted in Jan's Blog | Tagged , , , , | Leave a comment