A live-coding talk where I show off all you need to know about
var in Java. And then some.
With JUnit 5's dynamic tests, we can create tests at run time, for example to parameterize tests, create hierarchical test plans, or define tests with lambdas.
In Java 10, 'var' makes it is possible to ad-hoc combine traits into an instance that matches your exact requirements. Alas, it has some downsides.
How to repackage checked exceptions that get thrown in a Java stream pipeline so that they can be thrown without the compiler complaining about it.
With this talk, I help you get the most out of lambdas,
Optionals, and default methods, helping you master Java 8's core features
Anonymous classes are verbose and obfuscating. Functional implementations can oust them from their last strongholds (mainly abstract classes).
Java has no Elvis operator (or null coalescing operator / null-safe member selection) but with lambda expressions / method references you can roll your own.
See how Java's creation of instances of non-capturing lambda expressions can lead to unexpected and possibly bug-inducing behavior.