Home » JVM Languages » Page 17

JVM Languages

Changing Scalatra and sbt default directories

Conventions are not always good. I recently started a new internal web project at Codurance and I decided to use Scala. As I’m not a fan of big frameworks, I chose Scalatra as a micro web framework. The first challenge was that I wanted to organise my application with a different directory structure. By default, sbt and Scalatra use the ...

Read More »

Testing AKKA application with Spock

AKKA is message-driven and actor model based concurrency toolkit. Although it’s written in Scala, AKKA can be used in any JVM based language project. This post tries to fill the gap of missing information about writing good tests in polyglot JVM projects that leverage AKKA framework. In multi language JVM projects my obvious choice of testing tool is Spock. Powered ...

Read More »

Akka Typed Actors: Exploring the receptionist pattern

In this article we’ll explore another of Akka-Typed patterns. This time we’ll show you how you can use the receptionist patterns. This is the third and last article on a series on Akka-Typed. The other two articles can also be found on this site. If you don’t know anything about Akka-Typed yet, it’s a good idea to first read the ...

Read More »

Running Ceylon on OpenShift

This year we released three different ways you can run your Ceylon code on OpenShift: Bare-bones, using the Ceylon cartridge, Writing a verticle in Ceylon, using the Vert.x cartridge, or Packaging your Ceylon application as a .war file and running it on the WildFly cartridge. In this post we will see how you can write and publish a bare-bones application ...

Read More »

Porting Ceylon IDE to IntelliJ

We’ve had many questions about developing Ceylon in IntelliJ IDEA, so I thought it would be worth a quick status update. TL;DR: The screenshots are below. As you might know, Ceylon already has the most feature rich IDE of any modern language for the JVM, with some features that even the Java IDE for Eclipse doesn’t have. But IntelliJ users ...

Read More »

Two-way SSL (client certificates) with Scalatest

At work we recently added the option to authenticate machine to machine communication using client certificates (two-way ssl). While this was relatively easy to set up and access programatically from different programming languages, we ran into some difficulties getting our integration test up and running. We wanted to have a couple of tests to make sure the information from the ...

Read More »

Scala: working with JSON

Working with a JSON is very common task in a software development process. In Scala you can do it in many ways, either with help of Java popular libraries such as Jackson or using Scala specific libraries. How to make a right choice from the Spray JSON, Play JSON, Argonaut, Jackson, Rapture and many more? One day I received a ...

Read More »

Event sourcing + free monads = free sourcing?

I recently wrote about Event Sourcing and Free Monads. The natural next step is combining the two! How would a free monad adjusted for event sourcing look like? Please bear in mind that the below is just really a draft, not a complete solution. Hence any suggestions for improvements are very welcome! But, let’s review the basic assumptions. Our application ...

Read More »

Ceylon: Why you might want to choose Ceylon

In a couple of days Ceylon 1.2 will be released, after a year of development. That’s exciting for us, but we think it would be interesting to summarize our thoughts about why you should be excited about Ceylon, and why you might consider it over other programming languages designed to run on the Java and JavaScript virtual machines. Ceylon is ...

Read More »