Real World Java 9
The feature we always hear about whenever Java 9 is in the news is Jigsaw, modularity. But this doesn't scratch the same developer itch that Java 8's lambdas and streams did, and we're left with a vague sensation that the next version might not be that interesting.
Java 9 actually has a lot of great additions and changes to make development a bit nicer. These features can't be lumped under an umbrella term like Java 8's lambdas and streams, the changes are scattered throughout the APIs and language features that we regularly use.
In this presentation Trisha Gee shows, via live coding:
- What the Java Platform Module System is and how to make your code modular
- How we can use the new Flow API to utilise Reactive Programming
- The improvements to the Streams API that make it easier to control infinite streams
- How to the Collections convenience methods simplify code
Along the way we bump into other Java 9 features, including some of the additions to interfaces and changes to deprecation.
Timeline:
1:25 Why Java 9?
3:15 The Case Study
4:17 Compiling with Java 9
5:17 Underscore as an identifier no longer valid
6:43 Encapsulate Most Internal APIs
9:07 Jigsaw (screen freezes here until 11:32, but it's mostly talking anyway)
12:04 Java Platform Module System
14:21 module-info.java and live coding using JPMS in an existing application
18:10 Automatic modules
20:20 Using my custom modules
23:59 A more complex module-info.java example
25:40 Disadvantages of applying JPMS to existing code
28:46 Advantages of JPMS
29:50 Reactive Streams API
32:12 Questions (the answers are also covered below).
34:07 Module diagrams in IntelliJ IDEA
43:39 Convenience Factory Methods for Collections
49:43 Private Methods on Interfaces
51:01 New Methods on the Streams API
54:17 New Methods on Optional
58:52 The Stack Walking API
59:47 Process API Updates
1:01:58 Multi Release JAR Files
1:05:19 Updated Deprecation
1:06:43 HTML 5 Javadoc & Javadoc Search
1:07:47 JShell & Support in IntelliJ IDEA
1:09:33 Summary
*Author: Trisha Gee
Download IntelliJ IDEA: https://jb.gg/download-intellij-idea
Join us:
Website https://jb.gg/website
Blog https://jb.gg/blog
Twitter https://twitter.com/intellijidea
Facebook https://www.facebook.com/IntelliJIDEA/
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Real World Java 9», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.