Effective Java, Third Edition Keepin' it Effective (J. Bloch)

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ต.ค. 2024

ความคิดเห็น • 23

  • @goverdhank
    @goverdhank 5 ปีที่แล้ว +20

    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

    • @hellowill
      @hellowill 5 ปีที่แล้ว

      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.

  • @justforjava192
    @justforjava192 4 ปีที่แล้ว +13

    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.

  • @hellowill
    @hellowill 5 ปีที่แล้ว +4

    Every time I look at JDK code and its good, its got Josh Bloch as author. Cannot say the same about Jonathan Payne

  • @jinliangwang340
    @jinliangwang340 5 ปีที่แล้ว +1

    Amazingly the Chinese translation for the 3rd edition has published in 2018. So great!

  • @ImaginaryNumb3r
    @ImaginaryNumb3r 5 ปีที่แล้ว +3

    @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());

  • @tr233
    @tr233 4 ปีที่แล้ว +4

    This guy just blow my mind!

  • @allawadiarvind
    @allawadiarvind 5 ปีที่แล้ว

    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)

  • @mostafaismail5256
    @mostafaismail5256 3 ปีที่แล้ว

    Thank you! very useful

  • @dengan699
    @dengan699 5 ปีที่แล้ว +2

    I think that's rich people problems..
    We are still using imperative java,let alone functional and well written

  • @allawadiarvind
    @allawadiarvind 5 ปีที่แล้ว

    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.

    • @francisfuhy
      @francisfuhy 5 ปีที่แล้ว

      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?

    • @ImaginaryNumb3r
      @ImaginaryNumb3r 5 ปีที่แล้ว

      I am wondering, which version of Java were you using? Now that the JVM supports constant dynamic those should both be equal.

  • @nitinagrawal6637
    @nitinagrawal6637 4 ปีที่แล้ว +11

    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.

  • @move1649
    @move1649 6 ปีที่แล้ว +2

    43

  • @michaeljuliano8839
    @michaeljuliano8839 4 ปีที่แล้ว +1

    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.

  • @brian1801
    @brian1801 6 ปีที่แล้ว +11

    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.

  • @ramankpandita2090
    @ramankpandita2090 5 ปีที่แล้ว +1

    Am I the only one who is getting disturbed by his bending down again and again ?