With Java 8 comes a whole new set of language features. It even challenges the imperative coding-style of the Java programmer.
Java is a core language in Finn.no. More and more of our java-modules are being built with Java 8, adopting new features of the language. A workshop was warranted, with the goal of bringing every developer up to speed on the functional paradigm of Java 8.
In Finn.no, we want programmers to do stuff like this
While avoiding stuff like this
(Locking up all cores on a CPU is bad, and should only be done when the machine is right about to become self-aware and turn against you.)
We split the workshop into two half days. The first day was dedicated to streams and lambdas. Everyone seemed keen on getting those tests green (a rhyme!).
Day 2 we raised the bar with Optional
Both the word “monad” and the phrase “monadic domain” was uttered several times, but we still saw very few making the swoooosh-sound while flying a hand over their head (the internationally recognized sign of communicating that a topic is beyond mental capacity).
This might mean that the timing was good, and developers are interested in the new features of Java 8.
You may checkout the project and do the tasks yourself, by making the failing tests green.
Tags: java java8 functional lambda workshop