Attaching a Java debugger to the Scala REPL

December 29, 2009

I’m using the Scala REPL to play around with java libraries and check their runtime behaviors. One of the things I’m using it for is to check how Voldemort’s client is behaving in different setups. For one of the checks I wanted to trace the client threads with an IDE debugger. To attach a debugger… Read more

Baking availability SLA into the code

December 09, 2009

Availability and Partition Tolerance are essential for many distributed systems. A simple (though not comprehensive) way to measure both is using response time SLAs between services as implied from Jeff Darcy‘s observation: Lynch (referring to the 2002 SIGACT paper) also makes the point that unbounded delay is indistinguishable from failure. Time is therefore an essential… Read more

emptyList(), emptySet(), emptyMap()

December 08, 2009

This is the first in a series of posts on under-utilized Java collection types and idioms worth adding to your Java vocabulary. Top 5 Under-utilized Java Collections #1: Empty Collections Every Java programmer has at least once declared a constant to represent an empty collection. It might have looked something like this: static final List<Result>… Read more

Roasted Butternut Squash Soup

November 28, 2009

Thanksgiving (or for some Frenchgiving) being upon us, it’s time for a different kind of recipe. You’ll need 2 Butternut squash 3 Scallions 1 Celery 3 Carrots Vegetable broth Olive oil, salt, pepper Optionally sour cream and pine nuts Peel and cut the butternut squash in pieces. Place them on a griddle and put them… Read more

Parsing Java annotations

November 19, 2009

At kaChing, we are on a 5-minute commit-to-production cycle. To achieve this extreme iteration cycle, we are running a series of very fast analyses on our code base. From discovering bad code snippets to detecting missing Guice‘s bindings, these tests strive to catch common mistakes due to distracted developers, new hires or bad APIs. As… Read more

The Crunchie award

November 18, 2009

Please nominate us: