yep, made simple mistakes towards the end cause he was rushing it. (37:00, try-finally -> try with resources, and Files.Lines Java 7? Haha it returns Stream). Sad really.
In my opinion, string should've implemented Iterable to go with the foreach syntax, and we could use lambdas easily due to the default methods that were added to Iterable.
@13:31 bad example Instead of: service.execute(GoshThisClassNameIsHumongous::action) You can write: service.execute(this::action) similarly: .flatMap(identity()); can be statically imported for: flatMap(identity());
method reference can be succinct even more so.. but, wait, in a performance measuring terms I reckoned lambas are efficient as JVM can make a singleton for them but not so for method reference.
What a wastage of time of this man & the audience, I can't believe that he got only 45 minutes. It would have been enlightening if he could have spoken for another 45 minutes at least.
I have questions about his authority on the topic considering his recommendation to avoid autoboxing and unboxing for the sake of performance. You should write code that is easy to understand and functionally accurate. Nine times out of ten, the performance of such code will be adequate. For the one time it isn't, performance optimization should be done through examining how the code actually executes with a profiler rather than relying on superstitious preconceptions about the "performance" of this or that language feature. It may well be that the use of autoboxing and unboxing is the problem with your code, but there is no benefit to assuming it will make a difference until you a) have a performance problem and b) have diagnosed it with a profiler.
Those who post videos really don't seem to get how annoying their opening graphics and noise (music) really is. This is the reason many people do not view them beyond 5 seconds.
He deserved more than just 45 minutes .. that stipulated time made him go really fast through the material. Enjoyed his other talks more than this one
yep, made simple mistakes towards the end cause he was rushing it.
(37:00, try-finally -> try with resources, and Files.Lines Java 7? Haha it returns Stream).
Sad really.
In my opinion, string should've implemented Iterable to go with the foreach syntax, and we could use lambdas easily due to the default methods that were added to Iterable.
Every time I look at JDK code and its good, its got Josh Bloch as author. Cannot say the same about Jonathan Payne
Amazingly the Chinese translation for the 3rd edition has published in 2018. So great!
@13:31 bad example
Instead of: service.execute(GoshThisClassNameIsHumongous::action)
You can write: service.execute(this::action)
similarly: .flatMap(identity());
can be statically imported for: flatMap(identity());
This guy just blow my mind!
Just curious to know so every time we are creating a bew LinkedHashMap when we are adding to a map? (BiPredicate example at 18:27 and 22:13)
Thank you! very useful
I think that's rich people problems..
We are still using imperative java,let alone functional and well written
method reference can be succinct even more so.. but, wait, in a performance measuring terms I reckoned lambas are efficient as JVM can make a singleton for them but not so for method reference.
Pretty sure it's the other way round - method references are more efficient, though in some cases lambda (such as pure functions) would be comparable?
I am wondering, which version of Java were you using? Now that the JVM supports constant dynamic those should both be equal.
What a wastage of time of this man & the audience, I can't believe that he got only 45 minutes. It would have been enlightening if he could have spoken for another 45 minutes at least.
43
I have questions about his authority on the topic considering his recommendation to avoid autoboxing and unboxing for the sake of performance. You should write code that is easy to understand and functionally accurate. Nine times out of ten, the performance of such code will be adequate. For the one time it isn't, performance optimization should be done through examining how the code actually executes with a profiler rather than relying on superstitious preconceptions about the "performance" of this or that language feature. It may well be that the use of autoboxing and unboxing is the problem with your code, but there is no benefit to assuming it will make a difference until you a) have a performance problem and b) have diagnosed it with a profiler.
Those who post videos really don't seem to get how annoying their opening graphics and noise (music) really is. This is the reason many people do not view them beyond 5 seconds.
Evolution R*evolution bowwowaaaaannnoow
Jesus, aren't you a little bitch?
You skip that 5 sec .
That was cool music I loved it
Am I the only one who is getting disturbed by his bending down again and again ?