Spring Tips: the Spring Expression Language

Поделиться
HTML-код
  • Опубликовано: 19 сен 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

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

  • @wembleyleach
    @wembleyleach 4 месяца назад

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

  • @Anbu_Sampath
    @Anbu_Sampath 5 месяцев назад

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

  • @ansismaleckis1296
    @ansismaleckis1296 5 месяцев назад +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 5 месяцев назад

      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 3 месяца назад

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

  • @郑鈊
    @郑鈊 5 месяцев назад

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

  • @HandyAndyG
    @HandyAndyG 5 месяцев назад +5

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

    • @zombi1034
      @zombi1034 5 месяцев назад +4

      You code without an IDE, don’t you?

    • @HandyAndyG
      @HandyAndyG 5 месяцев назад

      @@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 5 месяцев назад +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 5 месяцев назад +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 5 месяцев назад +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.