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

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

Комментарии • 44

  • @spasicdejan
    @spasicdejan Месяц назад +2

    What an effort :)

  • @CKBisk
    @CKBisk Месяц назад +1

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

  • @justsignmeup911
    @justsignmeup911 Месяц назад +2

    longest tongue twister ever

  • @sadiulhakim7814
    @sadiulhakim7814 Месяц назад

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

    • @Lucario2405
      @Lucario2405 Месяц назад +3

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

    • @simonhartley9158
      @simonhartley9158 Месяц назад +1

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

    • @billykorando
      @billykorando Месяц назад +1

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

  • @gsestream
    @gsestream Месяц назад +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.

    •  Месяц назад +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 Месяц назад

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

    • @gsestream
      @gsestream Месяц назад +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.

    •  Месяц назад

      @@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 Месяц назад +1

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

  • @lukaszmachowski
    @lukaszmachowski Месяц назад +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.” 🤫👊🏻

    • @billykorando
      @billykorando Месяц назад

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

    • @lukaszmachowski
      @lukaszmachowski Месяц назад +1

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

    • @billykorando
      @billykorando Месяц назад

      @@lukaszmachowski thank you!

  • @sadiulhakim7814
    @sadiulhakim7814 Месяц назад +1

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