Reviewing the JDK 23 Release Notes - Inside Java Newscast #76

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024

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

  • @spasicdejan
    @spasicdejan 2 วันที่ผ่านมา +1

    What an effort :)

  • @justsignmeup911
    @justsignmeup911 6 วันที่ผ่านมา +2

    longest tongue twister ever

  • @sadiulhakim7814
    @sadiulhakim7814 7 วันที่ผ่านมา

    I just noticed that implicitly declared classes cannot be referenced. So, what are they used for? Only for writing scripts?

    • @Lucario2405
      @Lucario2405 7 วันที่ผ่านมา +3

      Yeah, basically.
      It's for when all your code is going to be in the same .java file.

    • @simonhartley9158
      @simonhartley9158 7 วันที่ผ่านมา +1

      They're for learning, so they allow the first thing you do to be as minimal as possible.

    • @billykorando6820
      @billykorando6820 7 วันที่ผ่านมา +1

      Yes implicitly declared classes are aiming for people, especially students, learning Java (and programming), and, for more experienced developers, writing scripts.

  • @gsestream
    @gsestream 7 วันที่ผ่านมา +3

    its good programming practice to not use asterisk imports, but declare all, ie let the IDE write the list of specific imports, but usable feature anyways. then there is no ambiguity introduced. ie explicit is much better than any implicit shaky implementations. implicit is not explicit. explicit makes all things directly visible, nothing to be guessed, by anyone. implicit has some hidden rules that you must know. what where how why. import-ant. maybe in implicit you have to support it, explicit is no strings attached. dont worry, be appy.

    •  7 วันที่ผ่านมา +1

      It's good writing practice to not use all-lowercase :-P Snark aside, these changes are part of "paving the onramp", so are meant to make Java more accessible to beginners (students, in particular). They may also come in handy when using Java in a script-like manner, maybe even without explicitly compiling anything at all.

    • @gsestream
      @gsestream 7 วันที่ผ่านมา

      dont comply with the rules. no IDEa what you are importing. might be malware, in the signal packages you are sending. idK.

    • @gsestream
      @gsestream 7 วันที่ผ่านมา +1

      whoever is or claims or wants to be the rules, or king or leader or to be followed. students are learning good practices, not easy quick bad solutions, which ruin things for everyone.

    •  7 วันที่ผ่านมา

      @@gsestream Who makes the "rules" about asterisk imports? Some teams go the opposite route: do the asterisk import, but then there can only be very few. That way, they restrict the amount of unrelated dependencies in a class and increase cohesion. Now what? Regarding students: just read "Paving the on-ramp". It is unreasonable to start with all best practices when students don't even understand the basics. It's a distraction. Same happens at school. You are told useful little lies all the time and then are told, "Well actually, that wasn't the full picture; Newton's equations are wrong, you have to use Einstein's; etc.". In my opinition, this applies to getting into programming, too.

    • @gsestream
      @gsestream 7 วันที่ผ่านมา +1

      whomever. cheers. well 1+1=2, or not. best accuracy or 1+½=2. you are teaching me right.

  • @lukaszmachowski
    @lukaszmachowski 6 วันที่ผ่านมา +2

    Easter egg at 9:24 “I’m sure many others have said this or something similar. I don’t know why I decided to phrase like I was the first one to originate this idea.” 🤫👊🏻

    • @billykorando6820
      @billykorando6820 6 วันที่ผ่านมา

      lol yea, when I was editing the video I was thinking to myself "why did I say it like that?!" 😂

    • @lukaszmachowski
      @lukaszmachowski 5 วันที่ผ่านมา +1

      @@billykorando6820 Thank you for a great episode. That was a heck of a lot to cover. I like the format.

    • @billykorando6820
      @billykorando6820 5 วันที่ผ่านมา

      @@lukaszmachowski thank you!

  • @CKBisk
    @CKBisk 3 วันที่ผ่านมา

    At 2:12 did you mean to say triple slash instead of backslash?

  • @sadiulhakim7814
    @sadiulhakim7814 7 วันที่ผ่านมา +1

    6:18 It gives python like felling. Good enough.