this post was submitted on 12 Nov 2023
24 points (74.0% liked)

Programming

17666 readers
354 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

In this blog, I’ll outline why learning and mastering Spring Boot in 2023 is a worthwhile endeavor, even though there may be a few differing opinions. I’ll also explore how Spring Boot compares to other backend technologies and alternative Java frameworks.

you are viewing a single comment's thread
view the rest of the comments
[–] eksb 22 points 1 year ago (8 children)

While you are mastering Spring, I am mastering libraries that do the thing my program needs to do.

While you are trying to debug to your Spring app, which is a huge PITA because Spring is a rat's nest of conflicting configuration paradigms and overlays and fills your call stack with dozens of layers of generated methods, I have finished my work and am ~~at the beach~~ helping my coworker debug his Spring app because he didn't listen to me when I said not to use Spring.

[–] [email protected] 7 points 1 year ago (1 children)

Just out of curiosity, why do you find debugging in spring a huge PITA? Also what do you mean by conflicting config paradigms?

Genuinely curious.

[–] eksb 0 points 1 year ago

Spring combines combinations of environment variables, system properties, files, and classpath resources, and handles a variety of patterns (e.g.: aConfigOption could be configured by system property A_CONFIG_OPTION, aConfigOption, or several other possibilities), so tracking down where the configuration came from is not always easy. Sometimes you think you can just set a property, but it turns out another property triggers loading a resource that overrides yours. This would be fine if applications/libraries clearly documented how to configure them, but most say "config via spring, good luck lol".

And good luck if you are trying to use two different components both built on Spring, and they both rely on the dependency injector settings "db.url". Now you have to start playing games with dependency injector scopes.

load more comments (6 replies)