Back to Browse

Handling null and upgrading past Java 8 - Inside Java Newscast #7

5.7K views
Jul 1, 2021
9:37

#Java #OpenJDK #JDK Dealing with `null` is never fun, so in this newscast, I explain how to best handle it, what tools can do, and how recent and upcoming language changes help dealing with it. I'll also look at a recent blog post about how Netflix upgraded from Java 8 to 16. ⎯⎯⎯⎯⎯⎯ Chapters ⎯⎯⎯⎯⎯⎯ 0:00 Intro JEP Cafe #1: https://www.youtube.com/watch?v=l1VrmvyIEpM 0:59 `null` in Java Reddit thread: https://www.reddit.com/r/java/comments/ny8ecf/acknowledging_that_null_is_a_problem/ 1:30 `null` in Java - The Problem with... "Null References: The Billion Dollar Mistake" by Tony Hoare: https://www.infoq.com/presentations/Null-References-The-Billion-Dollar-Mistake-Tony-Hoare/ 2:16 `null` in Java - How to handle... IntelliJ: https://www.jetbrains.com/help/idea/nullable-and-notnull-annotations.html Eclipse: https://wiki.eclipse.org/JDT_Core/Null_Analysis SonarQube: https://www.sonarqube.org/ SpotBugs: https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html PMD: https://pmd.github.io/latest/pmd_rules_java.html NullAway: https://github.com/uber/NullAway Checker Framework: https://checkerframework.org/ Which to use: https://stackoverflow.com/q/4963300/2525313 JSpecify: https://jspecify.dev/ Kevin B9n's presentation: https://drive.google.com/file/d/15wZ-cVPkfsNYzSez9WrAF4gEjWNzlDAD/view 4:19 `null` in Java - How changes helps with... Type patterns: https://nipafx.dev/java-type-pattern-matching/#null-check-included JEP 406: https://openjdk.java.net/jeps/406 JEP 401: https://openjdk.java.net/jeps/401 5:48 Updating past Java 8 "The Impossible Java 11": https://carlmastrangelo.com/blog/the-impossible-java-11 Carl on Twitter: https://twitter.com/CarlMastrangelo Nicolai on Twitter: https://twitter.com/nipafx 6:22 Updating past Java 8 - it's possible "Planning Your Java 9 Update": https://nipafx.dev/planning-your-java-9-update/ 7:19 Updating past Java 8 - it's necessary 8:00 Updating past Java 8 - it's beneficial 9:17 Outro ⎯⎯⎯⎯⎯⎯ Image Credits ⎯⎯⎯⎯⎯⎯ Ryan Gosling: https://www.flickr.com/photos/zaffi/13522798414 (CC-BY 2.0 https://creativecommons.org/licenses/by/2.0/) James Gosling: https://twitter.com/errcraft/photo Tony Hoare: https://commons.wikimedia.org/wiki/File:Sir_Tony_Hoare_IMG_5125.jpg (CC-BY-SA 2.0 FR: https://creativecommons.org/licenses/by-sa/2.0/fr/deed.en) Coffee Stains: https://unsplash.com/photos/R1c8MDVkSzM (Unsplach License: https://unsplash.com/license)

Download

1 formats

Video Formats

360pmp429.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Handling null and upgrading past Java 8 - Inside Java Newscast #7 | NatokHD