Тёмный

Java 8 best practices by Stephen Colebourne 

Devoxx UK
Подписаться 11 тыс.
Просмотров 63 тыс.
50% 1

The Java 8 release takes Java to a whole new level. Learning the new features is just the first step. The real question is how to make best use of them. There won’t be too much time in this session to introduce the new features, so you’ll need to know what lambdas and method references are in advance. Instead, the focus will be on how coding in Java 8 differs to previous Java versions, and how to avoid going too far with the new goodies. Join me for an opinionated session of best practices.

Наука

Опубликовано:

 

22 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@rydmerlin
@rydmerlin 5 лет назад
Compliment this guy on his presentation skills and the clear and concise way he’s constructed his slides.
@benzflynn
@benzflynn 5 лет назад
This is a magnificent once-over on Java 8 additions. Perhaps a little too much emphasis on lambdas and streams at the expense of smaller - but still very handy - things. Take the bit at 04:40 on no longer making method parameters final - they are now taken by the compiler as effectively final. Java 8 also allows objects defined within an enclosing method to see that method's parameters. Since local classes may only use variables that are final or effectively final, they can now access and use enclosing method parameters. Before Java 8 such variables had to be made members of the enclosing class to enable access by a method. This video made me look harder at interfaces, never a bad thing.
@minor12828
@minor12828 6 месяцев назад
Now my turn to look deep thanks for the sharing mate 🤝
@benzflynn
@benzflynn 5 лет назад
Good pres and tips. But maybe should have run over Supplier and Consumer interfaces too.
@viacheslavbutov8310
@viacheslavbutov8310 7 лет назад
Great speaker, great and understandable slides
@kaizokud42
@kaizokud42 3 года назад
at 3:35, how did Collection.sort method become people.sort method? What concept is that?
@juliankandlhofer7553
@juliankandlhofer7553 3 года назад
39:15 The first question was basically about that. The List interface now has a sort method on it.
@vladimirljubopytnov8381
@vladimirljubopytnov8381 7 лет назад
package-private methods on interfaces by changing default visibility would break a lots of existing ones... They'll have to come up with a keyword for package-private interface methods ( package private foo(); // :P)
@lafk_pl
@lafk_pl 7 лет назад
or have `package` keyword serve a double role.
@dengan699
@dengan699 5 лет назад
it's already Java 12 outside, still not seeing value types coming
@rishavsrivastav1
@rishavsrivastav1 7 лет назад
Hi Koushik, can you please do a tutorial on Java 8 Collections ?
@SagirAnsari-bn7oj
@SagirAnsari-bn7oj 4 года назад
Koushik is not listening you
@informatik01
@informatik01 7 лет назад
Here is a link to the slides by the same author, _Stephen Colebourne_, from his *JAX London 2015* talk: www.slideshare.net/scolebourne/java-se-8-best-practices-53975908?elq_mid=31452&sh=&cmid=WWMK15020783MPP039C003
@DinHamburg
@DinHamburg 7 лет назад
big + for the pragmatic views on those things - not just the ecstatic chatter we normally hear from evangelists.
@norbzt
@norbzt 5 лет назад
Don't tell me what to do 🤔
@dainiusfigoras
@dainiusfigoras 7 лет назад
it would be nice to hear more about motivation, why not do that or that. Like at very begging of "best practice" don't use types in lambdas, don't use brackets on single argument lambdas, don't use finals etc. But most of these aren't for compiler, but for human readers, wouldn't it be nice to know, that what is written is what author wanted to write and understand his intentions?
@move1649
@move1649 6 лет назад
good point, but it's really hard to explain everything in a 40 min talk. For example, in order to explain why "optional isPresent check is bad" probably will take one hour of talk
@silassadia5787
@silassadia5787 5 лет назад
It all boils down to the fundamental rule: don't tell the compiler what it already knows.
@minor12828
@minor12828 6 месяцев назад
I would disagree with what's said at min 4:40. I think is bettter to always use () all the time. I hope someone proves me wrong and i learn something
@huyvuvan4019
@huyvuvan4019 2 года назад
31:10
@XinWongDigital
@XinWongDigital 3 года назад
I tried really hard to like java😂.but....
@SSchithFoo
@SSchithFoo 6 лет назад
Java 8 in a nutshell, take out noise and replace with magic. "Noise" atleast made the code readable. Now you have no idea what is going on.
@akoursoumis
@akoursoumis 6 лет назад
Well as a Python dev AND a Java dev I can tell you... Magic is not that hard to read.
@Blei0
@Blei0 5 лет назад
That's not magic. It's clearly defined what happens and what's the equivalent code. Annotations are magic, lambdas aren't.
@02orochi
@02orochi 3 года назад
Removing the noise forces the dev to write more abstract code which is positive on the readability
@ImaginaryNumb3r
@ImaginaryNumb3r 7 лет назад
A lot of noise and in the end this is just an opinionated talk. Most of it is self evident anyway and harsly no explainations are provided. Unuseful talk.
@ptyxs
@ptyxs 5 лет назад
Not much interesting. I suggest any people interested in the subject to listen to or read books, blogs and videos by Venkat Subramananian, much more informative and vivid...
Далее
They got a Golden Buzzer 🤣✨
00:46
Просмотров 13 млн
Java Streams: Beyond The Basics
49:21
Просмотров 71 тыс.
Java Performance Puzzlers by Douglas Hawkins
46:49
Просмотров 28 тыс.
Know your Java? By Venkat Subramaniam
2:39:20
Просмотров 27 тыс.
10 Most Common Java Developer Mistakes
16:13
Просмотров 103 тыс.
Effective Java - Still Effective After All These Years
1:13:59
JDK 8: Lessons Learnt With Lambdas and Streams
30:38
Просмотров 88 тыс.
🚀  TDD, Where Did It All Go Wrong (Ian Cooper)
1:03:55
Просмотров 554 тыс.
Худшие кожаные чехлы для iPhone
1:00