Rafael Winterhalter | Devoxx

Rafael Winterhalter
Rafael Winterhalter Twitter

From Bouvet ASA

Rafael works as a software engineer at Bouvet in Oslo. He is a proponent of static typing and a JVM enthusiast with particular interests in code instrumentation, functional programming and the Scala language. Rafael blogs about software development and regularly presents at conferences. When coding outside of his work place, Rafael often works on Byte Buddy, a library for simple runtime code generation for the Java virtual machine.

Blog: https://plus.google.com/109266851795683366529

java Java, JVM, Javas SE/EE

Making Java more dynamic


While Java’s strict type system is a great help for avoiding programming errors, it also takes away some of the flexibility that developers appreciate when using dynamic languages. By using runtime code generation, it is possible to bring some of this flexibility back to the Java virtual machine. For this reason, runtime code generation is widely used by many state-of-the-art Java frameworks for implementing POJO-centric APIs but it also opens the door to assembling more modular applications. This presentation offers an introduction to the complex of runtime code generation and its use on the Java platform. Furthermore, it discusses the up- and downsides of several code generation libraries such as ASM, Javassist, cglib and Byte Buddy.

agTest Agilité, Methodologie & Tests

Unit testing concurrent code


While software engineers can disagree on almost any concept of programming best-practice, the necessity of writing unit tests remains undisputed. With the advent of concurrent applications and the ongoing deprecation of the one-thread-per-request model, unit tests do however miss an increasing fraction of programming errors such as race conditions or dead-locking code. But is it even possible to write tests that revise such errors? In the end, a good unit test is characterized by a determined execution path what effectively prevents the use of concurrency within a single test. However, there are tools and programming principles that allow for unit tests of concurrent code. This talk reviews typical mistakes made when concurrent code is tested and introduces Thread Weaver, a test suite for writing valid unit tests that uncover concurrency-related programming errors.