Looking for this?

Then you're in the right place: CodeFX.org is now nipafx.dev! It's the same content (spicy Java) by the same guy (me, Nicolai - nice to meet you!), but with a new look and without CodeFX as a middleman. From now on, it's just You. Me. Java.

Got it!

(JavaScript is off, so no cookies - tell me again next time)

Got it!

(and give me a cookie to remember - privacy policy)

Got it!

(and tell me again next time I'm forwarded)

By the way, it looks like you didn't get forwarded to the page you were looking for. If that's indeed the case, it would be great if you could let me know, so I can fix it.

Looking for this?

Then you're in the right place: CodeFX.org is now nipafx.dev! It's the same content (spicy Java) by the same guy (me, Nicolai - nice to meet you!), but with a new look and without CodeFX as a middleman. From now on, it's just You. Me. Java.

Got it!

(JavaScript is off, so no cookies - tell me again next time)

Got it!

(and give me a cookie to remember - privacy policy)

Got it!

(and tell me again next time I'm forwarded)

By the way, it looks like you didn't get forwarded to the page you were looking for. If that's indeed the case, it would be great if you could let me know, so I can fix it.

Fun With var

A live-coding talk where I show off all you need to know about var in Java. And then some.

Since Java 10 you can use var to let the compiler infer a local variable's type:

var users = new ArrayList<User>();

And that's pretty much it, right? Surprisingly, no! There are a lot of details to consider...

  • is this JavaScript?!
  • how exactly is the type inferred?
  • where can I use var and what should I look out for?
  • won't this lead to unreadable code?

... and a few fun things to do with var...

  • playing with anonymous classes (don't!)
  • faking traits (don't!)
  • faking intersection types (do!)

After this live-coding deep dive into var, you'll know all about Java 10's flagship feature.

Slides

Here's the current version of the slides.

I also embedded them below. If they're focussed, you can navigate with arrow keys or swipes (they're two-dimensional, with chapters on the horizontal axis and chapter content layed out vertically). Use Page Up/Down for linearized order and ? for more shortcuts.

Video

Here's a good recording of the talk. I hope you'll like it.

Past Presentations

I gave this talk a few times before. See below for links to slides (as they were at that very event), videos, and other information.

2019

Where?
JUG Darmstadt
TU Darmstadt, S2|02 (Robert-Piloty-Geb.), Raum C110, Hochschulstr. 10
When?
Wed, July 10th, 2019
19:00 Europe/Berlin
What?
announcementslides
Where?
JEEConf
Kiev, Mercure Congress Hall, Track D
When?
Fri, April 26th, 2019
11:05 Europe/Kiev
What?
program entryslides

2018

Where?
Virtual JUG
virtualjug.com/#live
When?
Wed, December 12th, 2018
17:00 UTC
What?
announcementslidesvideo
Where?
J-Fall
Pathé Ede, Zaal 1
When?
Thu, November 8th, 2018
16:50 Europe/Amsterdam
What?
program entryslidesvideo