Write better functional Java Code - Brian Vermeer

Поділитися
Вставка
  • Опубліковано 1 лют 2025

КОМЕНТАРІ • 8

  • @SirWolf2018
    @SirWolf2018 5 років тому +2

    At 7:49, the "if" and "else" blocks duplicate the same thing, and the "contains" check is kinda redundant. So you could have written a 1-liner:
    String name = beer.getName().replace(" ", "");

    • @claytoneden8956
      @claytoneden8956 3 роки тому

      I guess I'm kinda randomly asking but does anyone know a good place to watch newly released tv shows online?

    • @jaxralph9232
      @jaxralph9232 3 роки тому

      @Clayton Eden Flixportal =)

    • @claytoneden8956
      @claytoneden8956 3 роки тому

      @Jax Ralph thanks, I went there and it seems to work :) Appreciate it!!

    • @jaxralph9232
      @jaxralph9232 3 роки тому

      @Clayton Eden Happy to help xD

  • @nitinagrawal6637
    @nitinagrawal6637 4 роки тому +1

    I don't know why people start advocating for immutability over mutability. All these speakers should educate the people about the concepts of mutability & immutability rather suggesting immutability over mutability. Do these people themselves understand that good coding is not possible by neglecting the other, so all the coders must understand the balanced usage of these two important concepts. And rather suggesting the coders about what they should do or shouldn't, these people educate about the strengths of both the sides & then let the coders decide which fits well in what situation. Who can do the sensible coding using either pure immutability or pure mutability?

  • @dawidszyszko
    @dawidszyszko 5 років тому

    Sorry but this mutator is not implemented correctly. Good idea bad implementation.