Tag Archives: Scala
3 commands, 2 dependencies, 1 minute.. blast off with Scala development using the mvn archetype
I go to a fair few (probably too many), tech conference and meetups. A passing observation, is that if code samples are shown a proportion of the audience will try to run them while following along. Initially, this seems counter intuitive (to try and both listen and absorbing information while also trying to perform actions as a background task), though my own experience is that this works suprisingly well for practical activities, (maybe the multi-sensory exposure helps learning and retention ?).
Continue reading
Scala + JDK 6 annotations = Simple REST service in ~ 50 LOC
This is a post I’d been meaning to submit for some time and is the chaser sibling to the SOAP fuelled scrub up, showing how to create a very simple service in the Restful style using only Java 6 and the Scala language (note I personally use Scala v2.9). Continue reading
Partial updates in an immutable World
This post was prompted by a conversation with a good friend, who is an experienced Java developer taking their first, tentative, steps towards becoming a Scala programmer. Basically, the conversation went as follows:
“…Immutability seems good and like a goal I should aim for. How can I get this in my domain objects without having to provide a multiplicity of constructors to do partial updates ? Is it really that big a deal ? I’ve rarely had to worry about this stuff in Java at all !”
Both fair question, which I’ll try to address in the remainder of this post. Continue reading
Pattern Matching in Scala distilled
Power with control… control structures and abstractions in Scala
Scala + JDK6 annotations = Simple Web Service < 20 LOC
Shortcut Domain Objects in Scala
This article hopes to demonstrate that even if the use of Scala is restricted to/ bounded by the OO paradigm, it is still WIN packed. Continue reading
Scala… As good as it gets…
As good as it gets was a film starring Jack Nicholson, in which he played a misathropic writer who also happened to suffer from OCD. What bearing has this got with Scala ? Well non-directly, or even indirectly TBH, though I’d say that if Scala were best represented by any psychological disorder, it would most likely be some flavour of bipolar disorder. Scala really does seem to be a modern programming Marmite, where developers either love it or hate it. With no real middle ground being forged between the two. I personally find this quite ironic given the ‘maleability’ of Scala as a programming tool. Continue reading