Home » JVM Languages » Page 40

JVM Languages

Sending Email with Java and Akka actors

Akka is a concurrent framework written by Scala. Here I demonstrate sample application to send emails with Akka and implemented in Java. Reasons I decided to use Akka framework other than concurrency. Built-in configurable supervisor strategy to monitor child workers and decide what policy applies when there is an exception. Can reschedule delivery when application throwing some specific exception. Use ...

Read More »

Scala setup on Windows 7

This article will be dedicated to installation of Scala on PC with Windows 7. In general, doesn’t metter which Windows you have. All steps you need to perform are approximately the same for all versions of Windows. In my previous post I have described how to install Scala on Mac OS. The first step you need to do is download ...

Read More »

Scala Wonderland: All operations are method calls

I’ve started learning Scala two months ago and I can’t get back to Murakami’s 1Q84 so exciting it is. In the coming series I’d like to share my excitement with you. It won’t be yet another step-by-step tutorial. I’ll share features that made me think (IBM should be proud of me). For whatever reason.             ...

Read More »

A Scraping Library

As part of a project I’m working on, I needed to get documents from state institutions. And instead of writing code specific for each site, I decided to try creating a “universal” document scraper. It can be found as a separate module within the main project https://github.com/Glamdring/state-alerts/. The project is written in Scala, and can be used in any JVM ...

Read More »

Elo Rating System: Ranking Champions League teams using Clojure

As I mentioned in an earlier blog post I’ve been learning about ranking systems and one of the first ones I came across was the Elo rating system which is most famously used to rank chess players. The Elo rating system uses the following formula to work out a player/team’s ranking after they’ve participated in a match:       ...

Read More »

Scala Wonderland: The functional style

Scala encourages to use a functional style of programming. For programmers coming from imperative world of Java or C# it is the main challenge. The first step is to recognize the difference between functional and imperative programming. Scala has two keywords for variable declaration: var – mutable variables val – immutable variables One sign of imperative sign is occurence of ...

Read More »

Scala setup on Mac OS

Not so long time ago I decide to improve my programming skills with a new programming language. As you can see looking on the topic, the new language is Scala. I don’t want to write a lot of paragraphs about Scala advantages which were crucial in my decision. Learning of any programming language starts from setting up of environment. In ...

Read More »

Scala Wonderland: Lists

In functional style methods should not have side effects. A consequence of this philosophy is that List is immutable in Scala. Construction of a List is simple.                   val abc = List("a", "b", "c") There is one trick in the previous code. A common trick in Scala. It invokes method named apply ...

Read More »