Archive of "Scala"

Functional Programming in Scala with the Monoid

This blog will look at the Monoid and is the 3rd in a sequence of 5, as a result of our Coding Guild session on August 1st about functional programming concepts. In the session, TypeClasses, Semigroups, Monoids, Functors and Applicatives were covered. The Cats library has been used, but not extensively introduced. This time it…

Read More...

Functional Programming with semigroups

August 1st, we had another Coding Guild session, about functional programming concepts. In one session, TypeClasses, Semigroups, Monoids, Functors and Applicatives were covered. The Cats library has been used, but not extensively introduced. Together with Merlijn and Jeroen, I prepared examples and exercises to clarify these subjects. This is the second in a series of…

Read More...

Functional Programming with typeclasses

August 1st, we had another Coding Guild session, about functional programming concepts. In one session, TypeClasses, Semigroups, Monoids, Functors and Applicatives were covered. The Cats library has been used, but not extensively been introduced. Quite heavy stuff, but with the excellent examples and exercises, prepared by Merlijn, Anton and Jeroen, it clarified a lot to…

Read More...

Kata bowling at Trivento

As a Tech company it is important to keep updating our knowledge. Therefore we organize a Coding Guild every month. In this Coding Guild we share knowledge and experiment on how we should write Software. Monday June 26 we took up a programming challenge or kata. The challenge was to implement the bowling score (highly…

Read More...

Trait Linearization in Scala

Trait what? Trait linearization is the process in Scala that kicks in when you mixin traits in your class. The subject might look intimidating at first, but the process is actually quite simple. I expect that you already know what traits are and what you can do with them. This blog will focus on the…

Read More...

There and back again: a story about the ScalaDays 2016 at Berlin

ScalaDays 2016 Berlin This post is all about my trip to the ScalaDays 2016 at Berlin. Day 1: To Berlin After my wife dropped me of at the train station in Apeldoorn I waited for the international train to Berlin. Some of my colleagues boarded the train earlier. The train arrived, I joined my colleagues and…

Read More...

Write a Custom Protocol for Gatling

Write a Custom Protocol for Gatling Gatling is a great open source load testing framework. Out of the box it has great support for HTTP. There is also support for JMS, JDBC and Redis, but I’ve never tried these. A lot of services which are written use HTTP as their external interface. Therefore HTTP support…

Read More...

How to expose a SOAP service with scala/akka

After some trial and error i was able to expose a SOAP service with typesafe (scala). http://localhost:8080/wstest?wsdl

Read More...

Akka Process Framework

Akka Process Framework Akka is a great framework when you want to write reactive applications. While writing applications with Akka I noticed that it was somewhat difficult to write processes flows. In this blog post I will show why it is not trivial to write a process with Akka and how the ProcessFramework (https://github.com/jgordijn/process) solves…

Read More...

Akka – How to use the Ask pattern

Akka – Ask pattern In Akka you would often like to use some form of request-response. In this blog I will show some how this can be done and what you should think about. Plain tell – tell The easiest way to implement request response is just using tell In the above code the TimeTeller…

Read More...