• aaaaaaaaargh@feddit.org
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    2 days ago

    But you always get something in return for all those layers and layers of abstraction. For me most of the time it was a lot of Java/Spring features I didn’t know existed and after that I realized they were pointless.

    • DeprecatedCompatV2@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      23 hours ago

      Noooo, you have to override 50% of the class methods to hard couple your filter’s implementation to an event-bus-style bean with Spring in the package name to avoid NIH! What if someone needs to extend your Authentication Provider in the future but can only use a limited quota of keystrokes to implement their ticket as an inobvious side-effect? How else will they add the aud from your JWT to the MDC? Some kind of pointcut??