Scala

  • submit to reddit

How to Persist Instances in Cassandra Using Hector and Scala

I am going to show you how I went about solving how to persist instances in Cassandra, using Hector, in the function insert(instance) in Scala. To work out...

0 replies - 5051 views - 12/15/12 by Jan Machacek in Articles

Kafka Possibly Moving to Java CRC, Akka Suggested

If you haven't heard of Kafka, a super-fast distributed message queue from LinkedIn, you probably ought to look into it, and its heavily involved Apache...

0 replies - 4818 views - 12/14/12 by Mitch Pronschinske in Articles

Use Scala’s DynamicVariable to Avoid Closing Over a Value in Akka

If you’ve ever read Akka’s docs about Actors or saw this blogbost about how to avoid closing over the sender in Akka you already know why you...

0 replies - 2311 views - 12/13/12 by Konrad Malawski in Articles

Starting with Scala Macros: a Short Tutorial

Using some time during the weekend, I decided to finally explore one the new features in the coming Scala 2.10, macros. Macros are also written in Scala so...

0 replies - 1660 views - 12/10/12 by Adam Warski in Articles

Testing Groovy Classes with ScalaTest

The other day I read about ScalaTest. I liked the way the tests look like. And I started thinking where to use it. Today a colleague came to me asking me if...

0 replies - 2347 views - 12/08/12 by Martin Vecera in Articles

Spray JSON and ADTs

In this post, I’ll show you how to serialize (and deserialize) complex hierarchies of objects in Spray JSON. We’ll be dealing with ever so slightly...

0 replies - 1801 views - 12/08/12 by Jan Machacek in Articles

In-Memory Compute Grid Explained

Dmitriy Setrakyan recently provided an excellent explanation for In-Memory Data Grid  (IMDG) -- now I'll try to provide a similar...

0 replies - 4010 views - 11/21/12 by Nikita Ivanov in Articles

Managing Raw SOAP message within Spring Integration

In Spring Integration if we use int-ws:outbound-gateway, once a message is associated to the request channel, the Spring Integration container add the SOAP...

0 replies - 3034 views - 11/18/12 by Krishna Prasad in Articles

Let's Turn Packages into a Module System!

 Many projects are divided into modules/subprojects using the build system (Maven, Gradle, SBT …); and writing modular code is generally a Good Thing....

2 replies - 2538 views - 11/16/12 by Adam Warski in Articles

Devoxx 2012 – Day 4

Unitils: full stack testing solution for enterprise applications by Thomas de Rycke and Jeroen Horemans There are of course, several different types of tests:...

0 replies - 3289 views - 11/16/12 by Nicolas Frankel in Articles

CRUD Options in Scala

 Here’s a blog post exploring the different CRUD approaches in your Scala code. I will show you three different approaches, highlighting the...

0 replies - 1800 views - 11/14/12 by Jan Machacek in Articles

Iteratees for Imperative Programmers

When I first heard the word iteratee, I thought it was a joke. Turns out, it wasn't a joke, in fact there are also enumerators (that's ok) and enumeratees...

4 replies - 5156 views - 11/14/12 by James Roper in Articles

Non-Blocking I/O - Discovering Akka

Here comes the time to follow some good practices when implementing actors. One of the most important rules we should follow is avoiding any blocking...

0 replies - 7732 views - 11/14/12 by Tomasz Nurkiewicz in Articles

Understanding foldLeft in Scala

 As I’m working on some scala code the last few weeks, i have come across some functions in the scala api that I didn’t understand right away. One...

4 replies - 2758 views - 11/12/12 by Jelle Victoor in Articles

Scala Cheatsheet Part 1 – Collections

As a follow-up of point 4 of my previous article, here’s a first little cheatsheet on the Scala collections API. As in Java, knowing API is a big step in...

0 replies - 4097 views - 11/11/12 by Nicolas Frankel in Articles