How to Use Local Variables in Java?

preview_player
Показать описание
Java 10 introduced a feature called local variable type inference, which enables programmers to declare local variables by using “var” instead of an explicit type. This feature makes it possible to write code that is more concise and more readable. However, it’s also possible for this feature to be misused, obfuscating code instead of making it more readable. The Java team has published a set of style guidelines that help direct programmers toward uses of var that improve code quality and help them avoid uses that detract from code quality.

Style Guidelines for Local Variable Type Inference in Java

Рекомендации по теме
Комментарии
Автор

interesting video but awful audio ! please learn how to record audio properly !

alessandrodemanzano
Автор

"if you use it in the right way" ahahahhahaha funny... well, if the explanation is about developers who write unreadable code regardless 'var', you can also deprecate generics... and lots of other features and call it javascript... in the future, can you share stats about accesses to this style guideline please?

RiccardoPasquini