Spring Tips: the Spring Expression Language

Sdílet
Vložit
  • čas přidán 9. 04. 2024
  • Hi, Spring fans! In this installment, I look at the excellent Spring Expression Language, an embedded language for resolving simple expressions that is built right into the Spring Framework. #java #springboot #spel #jvm #springframework
  • Věda a technologie

Komentáře • 15

  • @wembleyleach
    @wembleyleach Před 3 měsíci

    Thanks for the great introduction to the Spring Expression Language, Josh!

  • @Anbu_Sampath
    @Anbu_Sampath Před 3 měsíci

    Spring Expression Language - lesser known feature of Spring. Good to see video on it.

  • @user-us9gl2ge1o
    @user-us9gl2ge1o Před 3 měsíci

    There should be more introduction to make him known to people.

  • @ansismaleckis1296
    @ansismaleckis1296 Před 3 měsíci +3

    Good luck debugging/fixing/improving such a code written by somebody else! Also, I don't see how this is actually useful. I feel that any gains that you make short term by writing code with Spring Expression Language gonna cost you (or somebody else) very dearly long term when you have to maintain that s**t. I just dont see what do you gain by using Spring Expression language and what are the scenarios where it shines. Perhaps I am just stupid.

    • @mikebonney1462
      @mikebonney1462 Před 3 měsíci

      This is the truth right here. I don’t know why the guy who owned the app before me chose to horse around with this nonsense but he’s long gone, there is a bug and everyone is staring at me to fix it asap.

    • @Piontek.k
      @Piontek.k Před 2 měsíci

      Thank you! I also see it as complete BS, making the code absolutely unmaintainable, with absolute zero benefits.

  • @HandyAndyG
    @HandyAndyG Před 3 měsíci +5

    Abuse of the var keyword everywhere. Why use "var" instead of "int". You lose more than you gain.

    • @zombi1034
      @zombi1034 Před 3 měsíci +4

      You code without an IDE, don’t you?

    • @HandyAndyG
      @HandyAndyG Před 3 měsíci

      @@zombi1034 No, I simply end up being surrounded by people who have no idea how to write readable code or name their variables properly. I bet you think it is clear what type of variable "data" is in this example and think that your IDE helps you read this type of mess ==> var data = myStream.filter(v -> v.isValid()).map(v -> v.getValue()).map(ValueAccessor::extractValues).toList();

    • @ajs9721
      @ajs9721 Před 3 měsíci +1

      ​@zombi1034 No, coding is done by Josh, and he is excellent at it, using Intellij Ultimate, again excellent IDE. The point that @HandyAndyG made is that 'var' keyword is being overused, especially when your Types aren't excessively long, and when the context doesn't provide a direct indication of the type. Valid point.

    • @zombi1034
      @zombi1034 Před 3 měsíci +1

      @@ajs9721 I mean we can argue if var should be used for ints, ok. But still, you are not losing anything because if the type really is not obviously clear from the context, using an IDE you can simply place your cursor above the variable and you will see the type.

    • @ajs9721
      @ajs9721 Před 3 měsíci +1

      @@zombi1034 No we aren't arguing at all, and I see your point there. It's just at times when one doesn't have control of IDE, like in this case, Josh has it. Or, when reviewing PRs in the browser, or similar situation. Rest is you do you.

  • @juanbp97
    @juanbp97 Před 3 měsíci +1

    Spring is trash!