Smarter Types with Records

A type defines a set of values. Historically we haven't been very good at using
encapsulation to ensure that objects stay within that set of values. This code-focused presentation provides a functional approach to Java type design,
using Java's new `record` keyword to guarantee that each constructed object is a legal value. Your code improves dramatically because now you validate the object in one place, at construction. Because `record` fields are automatically `private`, an object cannot be morphed into an illegal value. A typed object never needs to be re-checked by any function that receives it as an argument.


Bruce Eckel,

MindView

@bruceeckel
Smarter Types with Records
Bruce Eckel,
MindView
@bruceeckel
A type defines a set of values. Historically we haven't been very good at using encapsulation to ensure that objects stay within that set of values. This code-focused presentation provides a functional approach to Java type design, using Java's new `record` keyword to guarantee that each constructed object is a legal value. Your code improves dramatically because now you validate the object in one place, at construction. Because `record` fields are automatically `private`, an object cannot be morphed into an illegal value. A typed object never needs to be re-checked by any function that receives it as an argument.
О докладчике
О докладчике
Bruce Eckel (www.MindViewLLC.com) has published 10 books, numerous blog posts, over 150 articles, and has given hundreds of presentations throughout the world. He was a founding member of the ANSI/ISO C++ committee and was for many years the chair of both the C++ and Java tracks at the Software Development Conference. With James Ward, he creates the Happy Path Programming podcast. He cofounded the JavaPosse Roundup Conference (now the Winter Tech Forum) and created Evolve Coworking in Crested Butte, CO. He periodically holds Developer Retreats and provides public and private training and consulting in programming languages and software system design. His latest books are Atomic Kotlin and On Java 8.
Все спикеры SnowOne
Все спикеры SnowOne
Показать ещё
Click to order
Total: 
Пришлём подтверждение оплаты на указанную почту в течение 30 минут
Имя
Фамилия
Компания
Должность
E-mail
Оплачивая участие, вы соглашаетесь на обработку персональных данных и с условиями пользования сайтом